Package io.github.mahmoudimus.http3
Class FieldSectionSizeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
io.github.mahmoudimus.http3.Http3Exception
io.github.mahmoudimus.http3.FieldSectionSizeException
- All Implemented Interfaces:
Serializable
A decoded field section is larger than the decoder's SETTINGS_MAX_FIELD_SECTION_SIZE (RFC 9114
§4.2.2). This is a stream error: the section was still decoded to the end and acknowledged, so
the QPACK 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
Http3Exception.errorCode().- See Also:
-
Field Summary
Fields inherited from class io.github.mahmoudimus.http3.Http3Exception
NO_STREAM -
Method Summary
Methods inherited from class io.github.mahmoudimus.http3.Http3Exception
connectionError, errorCode, getMessage, isConnectionError, streamError, streamIdMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
size
public long size()The size of the field section, counted as SETTINGS_MAX_FIELD_SECTION_SIZE counts it.- Returns:
- the size in octets, at least as far as decoding counted
-
limit
public long limit()The limit the section exceeded: the decoder's SETTINGS_MAX_FIELD_SECTION_SIZE.- Returns:
- the limit in octets
-