Qore Programming Language Reference Manual 2.3.0
Loading...
Searching...
No Matches
HTTP/2 Mode Constants

Variables

const Qore::HTTP2_MODE_AUTO = HTTP2_MODE_AUTO
 HTTP/2 auto mode - use HTTP/2 if available via ALPN, fall back to HTTP/1.1 (default)
 
const Qore::HTTP2_MODE_DISABLED = HTTP2_MODE_DISABLED
 HTTP/2 disabled mode - only use HTTP/1.x, never attempt HTTP/2.
 
const Qore::HTTP2_MODE_H2C_DIRECT = HTTP2_MODE_H2C_DIRECT
 h2c (HTTP/2 cleartext) direct mode - starts HTTP/2 directly on non-TLS connections using prior knowledge
 
const Qore::HTTP2_MODE_H2C_UPGRADE = HTTP2_MODE_H2C_UPGRADE
 h2c via HTTP/1.1 Upgrade header (not yet implemented)
 
const Qore::HTTP2_MODE_REQUIRED = HTTP2_MODE_REQUIRED
 HTTP/2 required mode - require HTTP/2, fail if the server doesn't support it.
 

Detailed Description

These constants can be used with HTTPClient::setHttp2Mode() to control HTTP/2 behavior

Since
Qore 2.2

Variable Documentation

◆ HTTP2_MODE_H2C_DIRECT

const Qore::HTTP2_MODE_H2C_DIRECT = HTTP2_MODE_H2C_DIRECT

h2c (HTTP/2 cleartext) direct mode - starts HTTP/2 directly on non-TLS connections using prior knowledge

Since
Qore 2.2

◆ HTTP2_MODE_H2C_UPGRADE

const Qore::HTTP2_MODE_H2C_UPGRADE = HTTP2_MODE_H2C_UPGRADE

h2c via HTTP/1.1 Upgrade header (not yet implemented)

Since
Qore 2.2