TsgcHTTP2Client › Properties

TsgcHTTP2Client Properties

Published properties grouped by purpose, followed by the full alphabetical list.

Connection

NameDescription
ActiveOpens or closes the HTTP/2 connection to the remote server.
HostIP address or DNS name of the HTTP/2 server the client will connect to.
PortTCP port used to connect to the HTTP/2 server.
TLSEnables a secure TLS connection, which is normally required by HTTP/2 servers.
IPVersionSelects the IP protocol version (IPv4 or IPv6) used for the HTTP/2 TCP connection.
ProxyRoutes the HTTP/2 connection through an HTTP CONNECT tunnel or SOCKS proxy server.

Timeouts

NameDescription
ConnectTimeoutMaximum time in milliseconds the client waits for the TCP/TLS connection and HTTP/2 preface to complete.
ReadTimeoutMaximum time in milliseconds to wait for a synchronous HTTP/2 response before raising a timeout.

Reliability

NameDescription
HeartBeatSends periodic HTTP/2 PING frames to keep the connection alive.
WatchDogAutomatically reconnects to the HTTP/2 server after an unexpected disconnection.
ThrottleLimits the number of bits per second sent or received by the HTTP/2 socket.

Security

NameDescription
AuthenticationConfigures the credentials used to authenticate HTTP/2 requests, including OAuth2 and JWT tokens.
TLSOptionsConfigures certificates, TLS version, ALPN, IOHandler and other secure-connection details used for HTTP/2 over TLS.

HTTP/2

NameDescription
RequestDefault HTTP/2 request parameters (headers, user-agent, accept, content-type) applied to every outgoing request.
SettingsHTTP/2 SETTINGS frame parameters (RFC 7540 section 6.5) announced to the server at connection time.
HTTP2OptionsClient-side tuning options for HTTP/2, including how fragmented DATA frames are delivered to the application.

Diagnostics

NameDescription
LogFilePersists inbound and outbound HTTP/2 frames to a file, useful for wire-level debugging.
NotifyEventsControls how HTTP/2 events are dispatched to the main thread.
VersionRead-only string that returns the current sgcWebSockets library version.

All Properties (alphabetical)

NameDescription
ActiveOpens or closes the HTTP/2 connection to the remote server.
AuthenticationConfigures the credentials used to authenticate HTTP/2 requests, including OAuth2 and JWT tokens.
ConnectTimeoutMaximum time in milliseconds the client waits for the TCP/TLS connection and HTTP/2 preface to complete.
HeartBeatSends periodic HTTP/2 PING frames to keep the connection alive.
HostIP address or DNS name of the HTTP/2 server the client will connect to.
HTTP2OptionsClient-side tuning options for HTTP/2, including how fragmented DATA frames are delivered to the application.
IPVersionSelects the IP protocol version (IPv4 or IPv6) used for the HTTP/2 TCP connection.
LogFilePersists inbound and outbound HTTP/2 frames to a file, useful for wire-level debugging.
NotifyEventsControls how HTTP/2 events are dispatched to the main thread.
PortTCP port used to connect to the HTTP/2 server.
ProxyRoutes the HTTP/2 connection through an HTTP CONNECT tunnel or SOCKS proxy server.
ReadTimeoutMaximum time in milliseconds to wait for a synchronous HTTP/2 response before raising a timeout.
RequestDefault HTTP/2 request parameters (headers, user-agent, accept, content-type) applied to every outgoing request.
SettingsHTTP/2 SETTINGS frame parameters (RFC 7540 section 6.5) announced to the server at connection time.
ThrottleLimits the number of bits per second sent or received by the HTTP/2 socket.
TLSEnables a secure TLS connection, which is normally required by HTTP/2 servers.
TLSOptionsConfigures certificates, TLS version, ALPN, IOHandler and other secure-connection details used for HTTP/2 over TLS.
VersionRead-only string that returns the current sgcWebSockets library version.
WatchDogAutomatically reconnects to the HTTP/2 server after an unexpected disconnection.