mirror of
https://github.com/curl/curl.git
synced 2026-08-25 20:53:37 +03:00
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.
This commit is contained in:
parent
e683182918
commit
324a97ecf8
7 changed files with 29 additions and 8 deletions
|
|
@ -184,6 +184,7 @@ static const struct LongShort aliases[]= {
|
|||
{"0", "http1.0", FALSE},
|
||||
{"01", "http1.1", FALSE},
|
||||
{"02", "http2", FALSE},
|
||||
{"03", "http2-prior-knowledge", FALSE},
|
||||
{"1", "tlsv1", FALSE},
|
||||
{"10", "tlsv1.0", FALSE},
|
||||
{"11", "tlsv1.1", FALSE},
|
||||
|
|
@ -1036,6 +1037,10 @@ ParameterError getparameter(char *flag, /* f or -long-flag */
|
|||
/* HTTP version 2.0 */
|
||||
config->httpversion = CURL_HTTP_VERSION_2_0;
|
||||
break;
|
||||
case '3':
|
||||
/* HTTP version 2.0 over clean TCP*/
|
||||
config->httpversion = CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case '1': /* --tlsv1* options */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue