final case class Context(config: ServerConfig, appProvider: ApplicationProvider, actorSystem: ActorSystem, materializer: Materializer, stopHook: () => Future[_]) extends Product with Serializable
The values needed to initialize an AkkaHttpServer.
- config
Basic server configuration values.
- appProvider
An object which can be queried to get an Application.
- actorSystem
An ActorSystem that the server can use.
- stopHook
A function that should be called by the server when it stops. This function can be used to close resources that are provided to the server.
- Source
- AkkaHttpServer.scala
- Alphabetic
- By Inheritance
- Context
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Context(config: ServerConfig, appProvider: ApplicationProvider, actorSystem: ActorSystem, materializer: Materializer, stopHook: () => Future[_])
- config
Basic server configuration values.
- appProvider
An object which can be queried to get an Application.
- actorSystem
An ActorSystem that the server can use.
- stopHook
A function that should be called by the server when it stops. This function can be used to close resources that are provided to the server.
Value Members
- val actorSystem: ActorSystem
- val appProvider: ApplicationProvider
- val config: ServerConfig
- val materializer: Materializer
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val stopHook: () => Future[_]