Struct HttpVersionOption (2.21.0)
Stay organized with collections
Save and categorize content based on your preferences.
Set the HTTP version used by the client.
If this option is not provided, or is set to default
then the library uses libcurl's default, typically HTTP/2 with SSL. Possible settings include:
- "1.0": use HTTP/1.0, this is not recommended as would require a new connection for each request.
- "1.1": use HTTP/1.1, this may be useful when the overhead of HTTP/2 is unacceptable. Note that this may require additional connections.
- "2TLS": use HTTP/2 with TLS
- "2.0": use HTTP/2 with our without TLS.
Type Aliases
Type
Alias Of: std::string
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-10 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-09-10 UTC."}