Interface Http2SubProtocolSelector

All Known Implementing Classes:

public interface Http2SubProtocolSelector
A selector of HTTP/2 sub-protocols.
  • Field Details


      static final SubProtocolResult NOT_SUPPORTED
      Not supported sub-protocol result.
  • Method Details

    • subProtocol

      SubProtocolResult subProtocol(ConnectionContext ctx, HttpPrologue prologue, Http2Headers headers, Http2StreamWriter streamWriter, int streamId, Http2Settings serverSettings, Http2Settings clientSettings, StreamFlowControl streamFlowControl, Http2StreamState currentStreamState, Router router)
      Check if this is a sub-protocol request and return appropriate result.
      ctx - connection context
      prologue - received prologue
      headers - received headers
      streamWriter - stream writer
      streamId - stream id
      serverSettings - server settings
      clientSettings - client settings
      streamFlowControl - stream flow control
      currentStreamState - current stream state
      router - router
      sub-protocol result