From 324a97ecf82e5e415c3c9fb4df093053c1efedf1 Mon Sep 17 00:00:00 2001 From: Diego Bes Date: Fri, 18 Mar 2016 15:25:56 -0700 Subject: http2: support "prior knowledge", no upgrade from HTTP/1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- include/curl/curl.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') 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 */ }; -- cgit v1.2.1