Class PreviewServerSettings

java.lang.Object
org.apache.pekko.http.javadsl.settings.PreviewServerSettings
Direct Known Subclasses:
PreviewServerSettings

public abstract class PreviewServerSettings extends Object
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 Details

    • PreviewServerSettings

      public PreviewServerSettings()
  • Method Details

    • create

      public static PreviewServerSettings create(com.typesafe.config.Config config)
    • create

      public static PreviewServerSettings create(String configOverrides)
    • create

      public static PreviewServerSettings create(org.apache.pekko.actor.ActorSystem system)
    • enableHttp2

      public abstract boolean enableHttp2()
      Configures the Http extension to bind using HTTP/2 if given an pekko.http.scaladsl.HttpsConnectionContext. Otherwise binds as plain HTTP.
      Returns:
      (undocumented)
    • withEnableHttp2

      public PreviewServerSettings withEnableHttp2(boolean newValue)