Class HeaderListSizeException

All Implemented Interfaces:
Serializable

public final class HeaderListSizeException extends Http2Exception
A decoded field section is larger than the decoder's SETTINGS_MAX_HEADER_LIST_SIZE. This is a stream error: the whole field block was still decoded, so the HPACK state is intact and the connection can continue. A server would typically answer the request with 431 (Request Header Fields Too Large) or reset the stream with Http2Exception.errorCode().
See Also:
  • Method Details

    • size

      public long size()
      The size of the field section, counted as SETTINGS_MAX_HEADER_LIST_SIZE counts it.
      Returns:
      the decoded field section size in octets
    • limit

      public long limit()
      The configured decoded field section limit in octets.
      Returns:
      the configured limit in octets