diff options
| author | dartraiden <wowemuh@gmail.com> | 2025-02-13 23:08:12 +0300 |
|---|---|---|
| committer | dartraiden <wowemuh@gmail.com> | 2025-02-17 17:19:53 +0300 |
| commit | ad2538d4732ca78575c6038d9d905382cf11e9b1 (patch) | |
| tree | 9d3bade18910927d2eb0177076096330aac1c5ed /libs/libcurl/src/request.h | |
| parent | b7133232e0c3cc419fd2ad78c205213be894f0fb (diff) | |
libcurl: update to 8.12.1
Diffstat (limited to 'libs/libcurl/src/request.h')
| -rw-r--r-- | libs/libcurl/src/request.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/libs/libcurl/src/request.h b/libs/libcurl/src/request.h index 12dade3754..f0c8edc006 100644 --- a/libs/libcurl/src/request.h +++ b/libs/libcurl/src/request.h @@ -81,10 +81,11 @@ struct SingleRequest { first one */
curl_off_t offset; /* possible resume offset read from the
Content-Range: header */
- int httpversion; /* Version in response (09, 10, 11, etc.) */
int httpcode; /* error code from the 'HTTP/1.? XXX' or
'RTSP/1.? XXX' line */
int keepon;
+ unsigned char httpversion_sent; /* Version in request (09, 10, 11, etc.) */
+ unsigned char httpversion; /* Version in response (09, 10, 11, etc.) */
enum upgrade101 upgr101; /* 101 upgrade state */
/* Client Writer stack, handles transfer- and content-encodings, protocol
@@ -152,9 +153,6 @@ struct SingleRequest { BIT(sendbuf_init); /* sendbuf is initialized */
BIT(shutdown); /* request end will shutdown connection */
BIT(shutdown_err_ignore); /* errors in shutdown will not fail request */
-#ifdef USE_HYPER
- BIT(bodywritten);
-#endif
};
/**
@@ -196,18 +194,17 @@ void Curl_req_free(struct SingleRequest *req, struct Curl_easy *data); */
void Curl_req_hard_reset(struct SingleRequest *req, struct Curl_easy *data);
-#ifndef USE_HYPER
/**
* Send request headers. If not all could be sent
* they will be buffered. Use `Curl_req_flush()` to make sure
* bytes are really send.
* @param data the transfer making the request
* @param buf the complete header bytes, no body
+ * @param httpversion version used in request (09, 10, 11, etc.)
* @return CURLE_OK (on blocking with *pnwritten == 0) or error.
*/
-CURLcode Curl_req_send(struct Curl_easy *data, struct dynbuf *buf);
-
-#endif /* !USE_HYPER */
+CURLcode Curl_req_send(struct Curl_easy *data, struct dynbuf *buf,
+ unsigned char httpversion);
/**
* TRUE iff the request has sent all request headers and data.
|
