Uses of Class
io.github.mahmoudimus.http3.Http3Exception
Packages that use Http3Exception
-
Uses of Http3Exception in io.github.mahmoudimus.http3
Subclasses of Http3Exception in io.github.mahmoudimus.http3Modifier and TypeClassDescriptionfinal classA decoded field section is larger than the decoder's SETTINGS_MAX_FIELD_SECTION_SIZE (RFC 9114 §4.2.2).Methods in io.github.mahmoudimus.http3 that return Http3ExceptionModifier and TypeMethodDescriptionstatic Http3ExceptionHttp3Exception.connectionError(Http3ErrorCode errorCode, String message) An error that ends the connection.static Http3ExceptionHttp3Exception.streamError(long streamId, Http3ErrorCode errorCode, String message) An error that ends only the given stream.Methods in io.github.mahmoudimus.http3 that throw Http3ExceptionModifier and TypeMethodDescriptionstatic voidHttp3Headers.checkContentLength(long streamId, long declared, long received, boolean endStream) Checks DATA received against a declaredcontent-length(RFC 9114 §4.1.2).QpackDecoder.decode(long streamId, byte[] section) Decodes one encoded field section (the payload of a HEADERS or PUSH_PROMISE frame).static Http3SettingsHttp3Settings.fromFrame(Http3Frame.Settings frame) The settings a peer's SETTINGS frame establishes: its values on top of the defaults.voidQpackEncoder.onDecoderStream(byte[] data) Processes bytes from the peer's QPACK decoder stream; seeQpackEncoder.onDecoderStream(byte[], int, int).voidQpackEncoder.onDecoderStream(byte[] data, int offset, int length) Processes bytes from the peer's QPACK decoder stream (§4.4), in any pieces: an instruction split between calls is completed by the next.QpackDecoder.onEncoderStream(byte[] data) Processes bytes from the peer's QPACK encoder stream; seeQpackDecoder.onEncoderStream(byte[], int, int).QpackDecoder.onEncoderStream(byte[] data, int offset, int length) Processes bytes from the peer's QPACK encoder stream (§4.3), in any pieces: an instruction split between calls is completed by the next.voidHttp3StreamValidator.onEndOfStream()Reports the clean end of the stream.voidHttp3StreamValidator.onFrame(long type) Checks the next frame by type alone.voidHttp3StreamValidator.onFrame(Http3Frame frame) Checks the next frame, including the identifiers in GOAWAY, MAX_PUSH_ID and CANCEL_PUSH.booleanHttp3StreamValidator.UnidirectionalStreams.onStream(long type) Checks a new stream of the given type.voidHttp3StreamValidator.UnidirectionalStreams.onStreamClosed(long type) Reports that a stream of this type ended or was reset.static Http3FrameHttp3FrameReader.parse(ByteBuffer buf, int maxFramePayloadSize) Parses one whole frame at the buffer's position, for callers that collect a stream's bytes in a buffer.QpackDecoder.resume(long streamId) Decodes the blocked field section of a stream thatQpackDecoder.onEncoderStream(byte[])reported as ready.static RequestHeadersHttp3Headers.toRequest(long streamId, List<HeaderField> fields) Validates a decoded request header section, accepting extended CONNECT (the caller rejects it if it did not send SETTINGS_ENABLE_CONNECT_PROTOCOL; seeHttp3Headers.toRequest(long, List, boolean)).static RequestHeadersHttp3Headers.toRequest(long streamId, List<HeaderField> fields, boolean extendedConnect) Validates a decoded request header section.static ResponseHeadersHttp3Headers.toResponse(long streamId, List<HeaderField> fields) Validates a decoded response header section (final or 1xx).static voidHttp3Settings.validate(long id, long value) Checks one received setting.static List<HeaderField> Http3Headers.validateTrailers(long streamId, List<HeaderField> fields) Validates a trailer section: regular fields only.