Class Http2ConnectionSettingListBuilder

java.lang.Object
software.amazon.awssdk.crt.http.Http2ConnectionSettingListBuilder

public class Http2ConnectionSettingListBuilder extends Object
  • Constructor Details

    • Http2ConnectionSettingListBuilder

      public Http2ConnectionSettingListBuilder()
  • Method Details

    • addSetting

    • headerTableSize

      public Http2ConnectionSettingListBuilder headerTableSize(long 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

      public Http2ConnectionSettingListBuilder enablePush(boolean push)
      The SETTINGS_ENABLE_PUSH. This setting can be used to disable server push
      Parameters:
      push - enable server push or not.
      Returns:
      Http2ConnectionSettingListBuilder
    • maxConcurrentStreams

      public Http2ConnectionSettingListBuilder maxConcurrentStreams(long 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

      public Http2ConnectionSettingListBuilder initialWindowSize(long 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

      public Http2ConnectionSettingListBuilder maxFrameSize(long 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

      public Http2ConnectionSettingListBuilder maxHeaderListSize(long 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

      public List<Http2ConnectionSetting> build()