Struct HttpVersionOption (2.15.1)

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