Module io.helidon.webserver.http2
Package io.helidon.webserver.http2.spi
Interface Http2SubProtocolSelector
- All Known Implementing Classes:
GrpcProtocolSelector
public interface Http2SubProtocolSelector
A selector of HTTP/2 sub-protocols.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Handler of a sub-protocol. -
Field Summary
Modifier and TypeFieldDescriptionstatic final SubProtocolResult
Not supported sub-protocol result. -
Method Summary
Modifier and TypeMethodDescriptionsubProtocol
(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.
-
Field Details
-
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 contextprologue
- received prologueheaders
- received headersstreamWriter
- stream writerstreamId
- stream idserverSettings
- server settingsclientSettings
- client settingsstreamFlowControl
- stream flow controlcurrentStreamState
- current stream staterouter
- router- Returns:
- sub-protocol result
-