1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- #ifndef HEADER_CURL_HEADER_H
- #define HEADER_CURL_HEADER_H
- #include "curl_setup.h"
- #if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_HEADERS_API)
- struct Curl_header_store {
- struct Curl_llist_node node;
- char *name;
- char *value;
- int request;
- unsigned char type;
- char buffer[1];
- };
- CURLcode Curl_headers_init(struct Curl_easy *data);
- CURLcode Curl_headers_push(struct Curl_easy *data, const char *header,
- unsigned char type);
- 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
- #endif
|