diff options
author | Curl Upstream <curl-library@lists.haxx.se> | 2023-09-13 06:19:24 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-09-20 17:09:30 (GMT) |
commit | 017637e40f954e791a895a04855d0411bda61c10 (patch) | |
tree | b639b20b79e2674bb4ff1ddfac5fe5eb7a372dcc /lib/http.h | |
parent | e2ab2da70a2b390eb9067d45dfa47023b00c5cd7 (diff) | |
download | CMake-017637e40f954e791a895a04855d0411bda61c10.zip CMake-017637e40f954e791a895a04855d0411bda61c10.tar.gz CMake-017637e40f954e791a895a04855d0411bda61c10.tar.bz2 |
curl 2023-09-13 (6fa1d817)
Code extracted from:
https://github.com/curl/curl.git
at commit 6fa1d817e5b1a00d7d0c8168091877476b499317 (curl-8_3_0).
Diffstat (limited to 'lib/http.h')
-rw-r--r-- | lib/http.h | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -64,6 +64,10 @@ extern const struct Curl_handler Curl_handler_wss; struct dynhds; +CURLcode Curl_bump_headersize(struct Curl_easy *data, + size_t delta, + bool connect_only); + /* Header specific functions */ bool Curl_compareheader(const char *headerline, /* line to check */ const char *header, /* header keyword _with_ colon */ @@ -183,21 +187,19 @@ CURLcode Curl_http_auth_act(struct Curl_easy *data); #define EXPECT_100_THRESHOLD (1024*1024) #endif +/* MAX_HTTP_RESP_HEADER_SIZE is the maximum size of all response headers + combined that libcurl allows for a single HTTP response, any HTTP + version. This count includes CONNECT response headers. */ +#define MAX_HTTP_RESP_HEADER_SIZE (300*1024) + #endif /* CURL_DISABLE_HTTP */ /**************************************************************************** * HTTP unique setup ***************************************************************************/ struct HTTP { - curl_mimepart *sendit; curl_off_t postsize; /* off_t to handle large file sizes */ const char *postdata; - - const char *p_pragma; /* Pragma: string */ - - /* For FORM posting */ - curl_mimepart form; - struct back { curl_read_callback fread_func; /* backup storage for fread pointer */ void *fread_in; /* backup storage for fread_in pointer */ @@ -292,7 +294,7 @@ void Curl_http_req_free(struct httpreq *req); /** * Create the list of HTTP/2 headers which represent the request, - * using HTTP/2 pseudo headers preceeding the `req->headers`. + * using HTTP/2 pseudo headers preceding the `req->headers`. * * Applies the following transformations: * - if `authority` is set, any "Host" header is removed. |