Package software.amazon.awssdk.crt.http
Class Http2ConnectionSettingListBuilder
java.lang.Object
software.amazon.awssdk.crt.http.Http2ConnectionSettingListBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSetting(Http2ConnectionSetting setting) build()enablePush(boolean push) The SETTINGS_ENABLE_PUSH.headerTableSize(long headerTableSize) The SETTINGS_HEADER_TABLE_SIZE.initialWindowSize(long initialWindowSize) The SETTINGS_INITIAL_WINDOW_SIZE.maxConcurrentStreams(long maxConcurrentStreams) The SETTINGS_MAX_CONCURRENT_STREAMS.maxFrameSize(long maxFrameSize) The SETTINGS_MAX_FRAME_SIZE.maxHeaderListSize(long maxHeaderListSize) The SETTINGS_MAX_HEADER_LIST_SIZE.
-
Constructor Details
-
Http2ConnectionSettingListBuilder
public Http2ConnectionSettingListBuilder()
-
-
Method Details
-
addSetting
-
headerTableSize
The SETTINGS_HEADER_TABLE_SIZE. Allows the sender to inform the remote endpoint of the maximum size of the header compression table used to decode header blocks, in octets.- Parameters:
headerTableSize- the maximum size of the header compression table used (in octets)- Returns:
Http2ConnectionSettingListBuilder
-
enablePush
The SETTINGS_ENABLE_PUSH. This setting can be used to disable server push- Parameters:
push- enable server push or not.- Returns:
Http2ConnectionSettingListBuilder
-
maxConcurrentStreams
The SETTINGS_MAX_CONCURRENT_STREAMS. Indicates the maximum number of concurrent streams that the sender will allow.- Parameters:
maxConcurrentStreams- The maximum number of concurrent streams- Returns:
Http2ConnectionSettingListBuilder
-
initialWindowSize
The SETTINGS_INITIAL_WINDOW_SIZE. Indicates the sender's initial window size (in octets) for stream-level flow control. The initial value is 2^16-1 (65,535) octets.- Parameters:
initialWindowSize- initial window size (in octets)- Returns:
Http2ConnectionSettingListBuilder
-
maxFrameSize
The SETTINGS_MAX_FRAME_SIZE. Indicates the size of the largest frame payload that the sender is willing to receive, in octets.- Parameters:
maxFrameSize- the size of the largest frame payload (in octets)- Returns:
Http2ConnectionSettingListBuilder
-
maxHeaderListSize
The SETTINGS_MAX_HEADER_LIST_SIZE. This advisory setting informs a peer of the maximum size of header list that the sender is prepared to accept, in octets. The value is based on the uncompressed size of header fields, including the length of the name and value in octets plus an overhead of 32 octets for each header field.- Parameters:
maxHeaderListSize- the maximum size of header list (in octets)- Returns:
Http2ConnectionSettingListBuilder
-
build
-