diff options
author | Diego Bes <dbesprosvan@ahoffeld-pc.tango.corp> | 2016-03-18 15:25:56 -0700 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-03-31 22:23:11 +0200 |
commit | 324a97ecf82e5e415c3c9fb4df093053c1efedf1 (patch) | |
tree | ff166eca2ab220199c1cb8d46575d6a37f0e61ac /include/curl | |
parent | e683182918bafbe40d4525e51f6d360bfba14bfa (diff) | |
download | curl-324a97ecf82e5e415c3c9fb4df093053c1efedf1.tar.gz |
http2: support "prior knowledge", no upgrade from HTTP/1.1
Supports HTTP/2 over clear TCP
- Optimize switching to HTTP/2 by removing calls to init and setup
before switching. Switching will eventually call setup and setup calls
init.
- Supports new version to “force” the use of HTTP/2 over clean TCP
- Add common line parameter “--http2-prior-knowledge” to the Curl
command line tool.
Diffstat (limited to 'include/curl')
-rw-r--r-- | include/curl/curl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h index e0d5c0f4e..96ea1f2a0 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -1727,6 +1727,8 @@ enum { CURL_HTTP_VERSION_1_1, /* please use HTTP 1.1 in the request */ CURL_HTTP_VERSION_2_0, /* please use HTTP 2 in the request */ 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_LAST /* *ILLEGAL* http version */ }; |