Package akka.http.javadsl.settings
Class PreviewServerSettings
java.lang.Object
akka.http.javadsl.settings.PreviewServerSettings
- Direct Known Subclasses:
PreviewServerSettings
Public API but not intended for subclassing
Options that are in "preview" or "early access" mode. These options may change and/or be removed within patch releases without early notice (e.g. by moving them into a stable supported place).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PreviewServerSettings
create
(akka.actor.ActorSystem system) static PreviewServerSettings
create
(com.typesafe.config.Config config) static PreviewServerSettings
abstract boolean
Configures the Http extension to bind using HTTP/2 if given anHttpsConnectionContext
.withEnableHttp2
(boolean newValue)
-
Constructor Details
-
PreviewServerSettings
public PreviewServerSettings()
-
-
Method Details
-
create
-
create
-
create
-
enableHttp2
public abstract boolean enableHttp2()Configures the Http extension to bind using HTTP/2 if given anHttpsConnectionContext
. Otherwise binds as plain HTTP.Please note that when using this mode of binding you MUST include
"com.typesafe.akka" %% "akka-http2-support" % AkkaHttpVersion
in your dependencies / classpath.- Returns:
- (undocumented)
-
withEnableHttp2
-