-
-
Notifications
You must be signed in to change notification settings - Fork 11
libcURL.HTTPVersion
Andrew Lambert edited this page Nov 26, 2022
·
5 revisions
libcURL.HTTPVersion
Protected Enum HTTPVersion
None=0
HTTP1_0=1
HTTP1_1=2
HTTP2=3
HTTP2TLS=4
HTTP2PriorKnowledge=5
The HTTPVersion controls which version(s) of HTTP to use .
HTTPVersion | Comment |
---|---|
None |
Default, currently this is equivalent to HTTP1_1
|
HTTP1_0 |
Use HTTP version 1.0. |
HTTP1_1 |
Use HTTP version 1.1. |
HTTP2 |
Use HTTP version 2 if supported by the server, otherwise fallback to HTTP1_1 . |
HTTP2TLS |
Use HTTP version 2 if supported by the server AND the request uses TLS, otherwise fallback to HTTP1_1 . |
HTTP2PriorKnowledge |
Use HTTP version 2 for requests that do not use TLS without falling back to HTTP1_1 . |
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2014-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.