TsgcHTTP3Client › Properties › PeerSettings
HTTP/3 SETTINGS parameters received from the server.
property PeerSettings: TsgcHTTP3Settings read FPeerSettings;
TsgcHTTP3Settings
All parameters are zero or False until the server SETTINGS frame has been received.
This property is read-only. It exposes the SETTINGS frame the server sent on its control stream, using the same TsgcHTTP3Settings class as the client-side Settings, so the fields are identical but the values are the peer values.
The values are only meaningful once the server SETTINGS frame has arrived, which happens shortly after the connection is established. Reading them immediately after Connect may return the initial zeroes.
The parameters worth testing are EnableConnectProtocol, which decides whether ExtendedConnect can succeed, WebTransportMaxSessions, which decides whether WebTransport is available, and QPACKMaxTableCapacity, which decides whether the client may use the QPACK dynamic table. The convenience method ServerSupportsWebTransport combines the first two.
This member is currently available in the Delphi/C++Builder implementation only.
oClient.Connect('www.example.com', 443);
if oClient.PeerSettings.EnableConnectProtocol then
ShowMessage('server allows Extended CONNECT');