Class DefaultHttp2ConnectionDecoder

    • Constructor Detail

      • DefaultHttp2ConnectionDecoder

        public DefaultHttp2ConnectionDecoder​(Http2Connection connection,
                                             Http2ConnectionEncoder encoder,
                                             Http2FrameReader frameReader,
                                             Http2PromisedRequestVerifier requestVerifier,
                                             boolean autoAckSettings)
        Create a new instance.
        Parameters:
        connection - The Http2Connection associated with this decoder.
        encoder - The Http2ConnectionEncoder associated with this decoder.
        frameReader - Responsible for reading/parsing the raw frames. As opposed to this object which applies h2 semantics on top of the frames.
        requestVerifier - Determines if push promised streams are valid.
        autoAckSettings - false to disable automatically applying and sending settings acknowledge frame. The Http2ConnectionEncoder is expected to be an instance of Http2SettingsReceivedConsumer and will apply the earliest received but not yet ACKed SETTINGS when writing the SETTINGS ACKs. true to enable automatically applying and sending settings acknowledge frame.
      • DefaultHttp2ConnectionDecoder

        public DefaultHttp2ConnectionDecoder​(Http2Connection connection,
                                             Http2ConnectionEncoder encoder,
                                             Http2FrameReader frameReader,
                                             Http2PromisedRequestVerifier requestVerifier,
                                             boolean autoAckSettings,
                                             boolean autoAckPing,
                                             boolean validateHeaders)
        Create a new instance.
        Parameters:
        connection - The Http2Connection associated with this decoder.
        encoder - The Http2ConnectionEncoder associated with this decoder.
        frameReader - Responsible for reading/parsing the raw frames. As opposed to this object which applies h2 semantics on top of the frames.
        requestVerifier - Determines if push promised streams are valid.
        autoAckSettings - false to disable automatically applying and sending settings acknowledge frame. The Http2ConnectionEncoder is expected to be an instance of Http2SettingsReceivedConsumer and will apply the earliest received but not yet ACKed SETTINGS when writing the SETTINGS ACKs. true to enable automatically applying and sending settings acknowledge frame.
        autoAckPing - false to disable automatically sending ping acknowledge frame. true to enable automatically sending ping ack frame.
      • DefaultHttp2ConnectionDecoder

        public DefaultHttp2ConnectionDecoder​(Http2Connection connection,
                                             Http2ConnectionEncoder encoder,
                                             Http2FrameReader frameReader,
                                             Http2PromisedRequestVerifier requestVerifier,
                                             boolean autoAckSettings,
                                             boolean autoAckPing,
                                             boolean validateHeaders,
                                             boolean validateRequiredPseudoHeaders)
        Create a new instance.
        Parameters:
        connection - The Http2Connection associated with this decoder.
        encoder - The Http2ConnectionEncoder associated with this decoder.
        frameReader - Responsible for reading/parsing the raw frames. As opposed to this object which applies h2 semantics on top of the frames.
        requestVerifier - Determines if push promised streams are valid.
        autoAckSettings - false to disable automatically applying and sending settings acknowledge frame. The Http2ConnectionEncoder is expected to be an instance of Http2SettingsReceivedConsumer and will apply the earliest received but not yet ACKed SETTINGS when writing the SETTINGS ACKs. true to enable automatically applying and sending settings acknowledge frame.
        autoAckPing - false to disable automatically sending ping acknowledge frame. true to enable automatically sending ping ack frame.
        validateHeaders - true to validate headers according to RFC 7540, 8.1.2.6.
        validateRequiredPseudoHeaders - true to reject request/response HEADERS that omit a mandatory pseudo-header field, according to RFC 9113, 8.3, and to reject PUSH_PROMISE field blocks that do not carry a complete set of request pseudo-header fields, according to RFC 9113, 8.4.1.