summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2023-01-09 14:59:27 +0100
committerDaniel Stenberg <daniel@haxx.se>2023-01-12 16:17:55 +0100
commita56d2b0b94d2f6583ac0fd7605e4e4d1644c2ba9 (patch)
treee8ec5cc8a137dec2ccf9db789f46fb858bf22661 /include
parent8956cd4f9a8317d894f40d7df42c730343dc7e5d (diff)
downloadcurl-a56d2b0b94d2f6583ac0fd7605e4e4d1644c2ba9.tar.gz
curl.h: add CURL_HTTP_VERSION_3ONLY
As the previous CURL_HTTP_VERSION_3 option gets a slightly altered meaning. Closes #10264
Diffstat (limited to 'include')
-rw-r--r--include/curl/curl.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index c599b4d3f..8cc0b6ffe 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -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 */
};