Class H2Config

java.lang.Object
org.apache.hc.core5.http2.config.H2Config

@Contract(threading=IMMUTABLE) public class H2Config extends Object
HTTP/2 protocol configuration.
Since:
5.0
  • Field Details

    • DEFAULT

      public static final H2Config DEFAULT
    • INIT

      public static final H2Config INIT
    • headerTableSize

      private final int headerTableSize
    • pushEnabled

      private final boolean pushEnabled
    • maxConcurrentStreams

      private final int maxConcurrentStreams
    • initialWindowSize

      private final int initialWindowSize
    • maxFrameSize

      private final int maxFrameSize
    • maxHeaderListSize

      private final int maxHeaderListSize
    • compressionEnabled

      private final boolean compressionEnabled
    • INIT_HEADER_TABLE_SIZE

      private static final int INIT_HEADER_TABLE_SIZE
      See Also:
    • INIT_ENABLE_PUSH

      private static final boolean INIT_ENABLE_PUSH
      See Also:
    • INIT_MAX_FRAME_SIZE

      private static final int INIT_MAX_FRAME_SIZE
      See Also:
    • INIT_WINDOW_SIZE

      private static final int INIT_WINDOW_SIZE
      See Also:
    • INIT_CONCURRENT_STREAM

      private static final int INIT_CONCURRENT_STREAM
      See Also:
  • Constructor Details

    • H2Config

      H2Config(int headerTableSize, boolean pushEnabled, int maxConcurrentStreams, int initialWindowSize, int maxFrameSize, int maxHeaderListSize, boolean compressionEnabled)
  • Method Details

    • getHeaderTableSize

      public int getHeaderTableSize()
    • isPushEnabled

      public boolean isPushEnabled()
    • getMaxConcurrentStreams

      public int getMaxConcurrentStreams()
    • getInitialWindowSize

      public int getInitialWindowSize()
    • getMaxFrameSize

      public int getMaxFrameSize()
    • getMaxHeaderListSize

      public int getMaxHeaderListSize()
    • isCompressionEnabled

      public boolean isCompressionEnabled()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • custom

      public static H2Config.Builder custom()
    • initial

      public static H2Config.Builder initial()
    • copy

      public static H2Config.Builder copy(H2Config config)