Class Http2AlpnSupport$
java.lang.Object
org.apache.pekko.http.impl.engine.http2.Http2AlpnSupport$
INTERNAL API
Will add support to an engine either using jetty alpn or using netty APIs (later).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Http2AlpnSupport$
Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clientSetApplicationProtocols
(SSLEngine engine, String[] protocols) enableForServer
(SSLEngine engine, scala.Function1<String, scala.runtime.BoxedUnit> setChosenProtocol) Enables server-side Http/2 ALPN support for the given engine.H2()
HTTP11()
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
Http2AlpnSupport$
public Http2AlpnSupport$()
-
-
Method Details
-
H2
-
HTTP11
-
enableForServer
public SSLEngine enableForServer(SSLEngine engine, scala.Function1<String, scala.runtime.BoxedUnit> setChosenProtocol) Enables server-side Http/2 ALPN support for the given engine.- Parameters:
engine
- (undocumented)setChosenProtocol
- (undocumented)- Returns:
- (undocumented)
-
clientSetApplicationProtocols
-