Interface Http2SubProtocolSelector

All Known Implementing Classes:
GrpcProtocolSelector

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

    • NOT_SUPPORTED

      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.
      Parameters:
      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
      Returns:
      sub-protocol result