Class PreviewServerSettings
java.lang.Object
org.apache.pekko.http.javadsl.settings.PreviewServerSettings
org.apache.pekko.http.scaladsl.settings.PreviewServerSettings
- Direct Known Subclasses:
PreviewServerSettingsImpl
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PreviewServerSettings
apply
(com.typesafe.config.Config config) static PreviewServerSettings
abstract boolean
Configures the Http extension to bind using HTTP/2 if given anpekko.http.scaladsl.HttpsConnectionContext
.static PreviewServerSettingsImpl
fromSubConfig
(com.typesafe.config.Config root, com.typesafe.config.Config c) withEnableHttp2
(boolean newValue) Methods inherited from class org.apache.pekko.http.javadsl.settings.PreviewServerSettings
create, create, create
-
Constructor Details
-
PreviewServerSettings
public PreviewServerSettings()
-
-
Method Details
-
fromSubConfig
public static PreviewServerSettingsImpl fromSubConfig(com.typesafe.config.Config root, com.typesafe.config.Config c) -
apply
-
apply
-
enableHttp2
public abstract boolean enableHttp2()Description copied from class:PreviewServerSettings
Configures the Http extension to bind using HTTP/2 if given anpekko.http.scaladsl.HttpsConnectionContext
. Otherwise binds as plain HTTP.- Specified by:
enableHttp2
in classPreviewServerSettings
- Returns:
- (undocumented)
-
withEnableHttp2
- Overrides:
withEnableHttp2
in classPreviewServerSettings
-