mirror of
https://github.com/curl/curl.git
synced 2026-07-23 14:17:20 +03:00
curl.h: add CURL_HTTP_VERSION_3ONLY
As the previous CURL_HTTP_VERSION_3 option gets a slightly altered meaning. Closes #10264
This commit is contained in:
parent
8956cd4f9a
commit
a56d2b0b94
3 changed files with 14 additions and 9 deletions
|
|
@ -2259,8 +2259,13 @@ enum {
|
|||
CURL_HTTP_VERSION_2TLS, /* use version 2 for HTTPS, version 1.1 for HTTP */
|
||||
CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE, /* please use HTTP 2 without HTTP/1.1
|
||||
Upgrade */
|
||||
CURL_HTTP_VERSION_3 = 30, /* Makes use of explicit HTTP/3 without fallback.
|
||||
Use CURLOPT_ALTSVC to enable HTTP/3 upgrade */
|
||||
CURL_HTTP_VERSION_3 = 30, /* Use HTTP/3, fallback to HTTP/2 or HTTP/1 if
|
||||
needed. For HTTPS only. For HTTP, this option
|
||||
makes libcurl return error. */
|
||||
CURL_HTTP_VERSION_3ONLY = 31, /* Use HTTP/3 without fallback. For HTTPS
|
||||
only. For HTTP, this makes libcurl
|
||||
return error. */
|
||||
|
||||
CURL_HTTP_VERSION_LAST /* *ILLEGAL* http version */
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue