ServerConfig

spice.http.server.config.ServerConfig
class ServerConfig(server: HttpServer)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Type members

Classlikes

object session

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
session.type

Value members

Concrete fields

lazy val autoRestart: Var[Boolean]

If set to true the server will automatically restart when any configuration option changes. If set to false the server must be manually restarted before changes will take effect.

If set to true the server will automatically restart when any configuration option changes. If set to false the server must be manually restarted before changes will take effect.

Default is true.

Attributes

val enableHTTP2: Var[Boolean]

Enables HTTP/2 support for the server. Defaults to true.

Enables HTTP/2 support for the server. Defaults to true.

Attributes

val ioRuntimeConfig: Var[IORuntimeConfig]
lazy val listeners: Var[List[ServerSocketListener]]

Listeners for the server. Support HTTP and HTTPS listeners. Use addHttpListener and addHttpsListener for easier usage.

Listeners for the server. Support HTTP and HTTPS listeners. Use addHttpListener and addHttpsListener for easier usage.

Defaults to one HTTP listener on 127.0.0.1:8080. This can be managed in code or via configuration. Storing an HttpServerListener instance to "listeners.http" or HttpsServerListener to "listeners.https" will override the defaults if done before this property is accessed for the first time. This can also be overridden via command-line using specifics like "-listeners.http.host=0.0.0.0". HTTPS is configured by default, but enabled is set to false. To easily enable HTTPS just pass "-listeners.https.enabled=true".

Attributes

val name: Var[String]

The Server name set in the HTTP header

The Server name set in the HTTP header

Attributes

val persistentConnections: Var[Boolean]

Enables reuse of connections. Defaults to true.

Enables reuse of connections. Defaults to true.

Attributes

val webSocketCompression: Var[Boolean]