]> sjero.net Git - wget/blob - src/warc.h
41829d1244ed560d700723c4e1637a303ae6e552
[wget] / src / warc.h
1 /* Declarations of WARC helper methods. */
2 #ifndef WARC_H
3 #define WARC_H
4
5 #include "host.h"
6
7 void warc_init (void);
8 void warc_close (void);
9 void warc_timestamp (char *timestamp);
10 void warc_uuid_str (char *id_str);
11
12 FILE * warc_tempfile (void);
13
14 bool warc_write_request_record (char *url, char *timestamp_str, char *concurrent_to_uuid, ip_address *ip, FILE *body, off_t payload_offset);
15 bool warc_write_response_record (char *url, char *timestamp_str, char *concurrent_to_uuid, ip_address *ip, FILE *body, off_t payload_offset, char *mime_type, int response_code, char *redirect_location);
16 bool warc_write_resource_record (char *resource_uuid, char *url, char *timestamp_str, char *concurrent_to_uuid, ip_address *ip, char *content_type, FILE *body, off_t payload_offset);
17
18 #endif /* WARC_H */
19