mirror of
https://github.com/mirror/wget.git
synced 2025-01-31 23:00:38 +08:00
233f982f9d
* src/http.c (gethttp): Add buffer size param to warc_uuid_str. * src/warc.c: Likewise * src/warc.h: Likewise
28 lines
1.1 KiB
C
28 lines
1.1 KiB
C
/* Declarations of WARC helper methods. */
|
|
#ifndef WARC_H
|
|
#define WARC_H
|
|
|
|
#include "host.h"
|
|
|
|
void warc_init (void);
|
|
void warc_close (void);
|
|
void warc_uuid_str (char *id_str, size_t urn_size);
|
|
|
|
char * warc_timestamp (char *timestamp, size_t timestamp_size);
|
|
|
|
FILE * warc_tempfile (void);
|
|
|
|
bool warc_write_request_record (const char *url, const char *timestamp_str,
|
|
const char *concurrent_to_uuid, const ip_address *ip, FILE *body, off_t payload_offset);
|
|
bool warc_write_response_record (const char *url, const char *timestamp_str,
|
|
const char *concurrent_to_uuid, const ip_address *ip, FILE *body, off_t payload_offset,
|
|
const char *mime_type, int response_code, const char *redirect_location);
|
|
bool warc_write_resource_record (const char *resource_uuid, const char *url,
|
|
const char *timestamp_str, const char *concurrent_to_uuid, const ip_address *ip,
|
|
const char *content_type, FILE *body, off_t payload_offset);
|
|
bool warc_write_metadata_record (const char *record_uuid, const char *url,
|
|
const char *timestamp_str, const char *concurrent_to_uuid, ip_address *ip,
|
|
const char *content_type, FILE *body, off_t payload_offset);
|
|
|
|
#endif /* WARC_H */
|