summaryrefslogtreecommitdiff
path: root/lib/http.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-01-31 08:10:07 +0100
committerDaniel Stenberg <daniel@haxx.se>2014-04-04 17:03:43 +0200
commitac887eedbc17a0d78b11ff467858c76a5127d1f4 (patch)
tree33f12aad12cd5eb43e1a5d069e1ecb2747e7e864 /lib/http.h
parent42937f87e65554ec4b887a5bd0b34abdbf2e0977 (diff)
downloadcurl-ac887eedbc17a0d78b11ff467858c76a5127d1f4.tar.gz
CURLOPT_PROXYHEADER: set headers for proxy-only
Includes docs and new test cases: 1525, 1526 and 1527 Co-written-by: Vijay Panghal
Diffstat (limited to 'lib/http.h')
-rw-r--r--lib/http.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/http.h b/lib/http.h
index 407f7b621..7cf183101 100644
--- a/lib/http.h
+++ b/lib/http.h
@@ -39,9 +39,13 @@ extern const struct Curl_handler Curl_handler_https;
bool Curl_compareheader(const char *headerline, /* line to check */
const char *header, /* header keyword _with_ colon */
const char *content); /* content string to find */
-char *Curl_checkheaders(struct SessionHandle *data, const char *thisheader);
+
+char *Curl_checkheaders(const struct connectdata *conn,
+ const char *thisheader);
char *Curl_copy_header_value(const char *header);
+char *Curl_checkProxyheaders(const struct connectdata *conn,
+ const char *thisheader);
/* ------------------------------------------------------------------------- */
/*
* The add_buffer series of functions are used to build one large memory chunk
@@ -67,7 +71,8 @@ CURLcode Curl_add_buffer_send(Curl_send_buffer *in,
CURLcode Curl_add_timecondition(struct SessionHandle *data,
Curl_send_buffer *buf);
CURLcode Curl_add_custom_headers(struct connectdata *conn,
- Curl_send_buffer *req_buffer);
+ bool is_connect,
+ Curl_send_buffer *req_buffer);
/* protocol-specific functions set up to be called by the main engine */
CURLcode Curl_http(struct connectdata *conn, bool *done);