diff options
Diffstat (limited to 'libs/libcurl/src/headers.h')
-rw-r--r-- | libs/libcurl/src/headers.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/libcurl/src/headers.h b/libs/libcurl/src/headers.h index a1c20852d0..f33e6c8585 100644 --- a/libs/libcurl/src/headers.h +++ b/libs/libcurl/src/headers.h @@ -37,6 +37,12 @@ struct Curl_header_store { };
/*
+ * Initialize header collecting for a transfer.
+ * Will add a client writer that catches CLIENTWRITE_HEADER writes.
+ */
+CURLcode Curl_headers_init(struct Curl_easy *data);
+
+/*
* Curl_headers_push() gets passed a full header to store.
*/
CURLcode Curl_headers_push(struct Curl_easy *data, const char *header,
@@ -48,6 +54,7 @@ CURLcode Curl_headers_push(struct Curl_easy *data, const char *header, CURLcode Curl_headers_cleanup(struct Curl_easy *data);
#else
+#define Curl_headers_init(x) CURLE_OK
#define Curl_headers_push(x,y,z) CURLE_OK
#define Curl_headers_cleanup(x) Curl_nop_stmt
#endif
|