summaryrefslogtreecommitdiffstats
path: root/lib/http.h
diff options
context:
space:
mode:
authorCurl Upstream <curl-library@lists.haxx.se>2023-09-13 06:19:24 (GMT)
committerBrad King <brad.king@kitware.com>2023-09-20 17:09:30 (GMT)
commit017637e40f954e791a895a04855d0411bda61c10 (patch)
treeb639b20b79e2674bb4ff1ddfac5fe5eb7a372dcc /lib/http.h
parente2ab2da70a2b390eb9067d45dfa47023b00c5cd7 (diff)
downloadCMake-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.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/lib/http.h b/lib/http.h
index df3b4e3..9ee3c65 100644
--- a/lib/http.h
+++ b/lib/http.h
@@ -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.