Package akka.http.impl.engine.http2
Class Http2AlpnSupport
- java.lang.Object
-
- akka.http.impl.engine.http2.Http2AlpnSupport
-
public class Http2AlpnSupport extends java.lang.Object
INTERNAL APIWill add support to an engine either using jetty alpn or using netty APIs (later).
-
-
Constructor Summary
Constructors Constructor Description Http2AlpnSupport()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
clientSetApplicationProtocols(javax.net.ssl.SSLEngine engine, java.lang.String[] protocols)
static javax.net.ssl.SSLEngine
enableForServer(javax.net.ssl.SSLEngine engine, scala.Function1<java.lang.String,scala.runtime.BoxedUnit> setChosenProtocol)
Enables server-side Http/2 ALPN support for the given engine.static java.lang.String
H2()
static java.lang.String
HTTP11()
-
-
-
Method Detail
-
H2
public static java.lang.String H2()
-
HTTP11
public static java.lang.String HTTP11()
-
enableForServer
public static javax.net.ssl.SSLEngine enableForServer(javax.net.ssl.SSLEngine engine, scala.Function1<java.lang.String,scala.runtime.BoxedUnit> setChosenProtocol)
Enables server-side Http/2 ALPN support for the given engine.- Parameters:
engine
- (undocumented)setChosenProtocol
- (undocumented)- Returns:
- (undocumented)
-
clientSetApplicationProtocols
public static void clientSetApplicationProtocols(javax.net.ssl.SSLEngine engine, java.lang.String[] protocols)
-
-