TsgcHTTP2Client › Properties › Settings
HTTP/2 SETTINGS frame parameters (RFC 7540 section 6.5) announced to the server at connection time.
property Settings: TsgcHTTP2Settings read FSettings write SetSettings;
HTTP/2 protocol defaults (see Remarks)
Controls the values sent in the initial HTTP/2 SETTINGS frame during the connection preface. Sub-properties:
EnablePush: enables or disables server push (SETTINGS_ENABLE_PUSH). Enabled by default; set to False to reject PUSH_PROMISE frames.HeaderTableSize: maximum size (in octets) of the HPACK header compression table (SETTINGS_HEADER_TABLE_SIZE). Default 4096.InitialWindowSize: initial flow-control window for every stream (SETTINGS_INITIAL_WINDOW_SIZE). Default 65535.MaxConcurrentStreams: upper bound on the number of concurrent streams the peer may open (SETTINGS_MAX_CONCURRENT_STREAMS).MaxFrameSize: largest frame payload the client is willing to receive (SETTINGS_MAX_FRAME_SIZE). Default 16384.MaxHeaderListSize: advisory maximum size of the uncompressed header list (SETTINGS_MAX_HEADER_LIST_SIZE).
oHTTP2 := TsgcHTTP2Client.Create(nil);
oHTTP2.Host := 'http2.akamai.com';
oHTTP2.Port := 443;
oHTTP2.TLS := True;
oHTTP2.Settings.EnablePush := False;
oHTTP2.Settings.InitialWindowSize := 1048576;
oHTTP2.Settings.MaxConcurrentStreams := 100;