DefaultPekkoHttpServerComponents
A convenient helper trait for constructing an PekkoHttpServer, for example:
val components = new DefaultPekkoHttpServerComponents {
override lazy val router = {
case GET(p"/") => Action(parse.json) { body =>
Ok("Hello")
}
}
}
val server = components.server
Attributes
- Graph
-
- Supertypes
-
trait NoHttpFiltersComponentstrait BuiltInComponentstrait PekkoTypedComponentstrait PekkoComponentstrait I18nComponentstrait ServerComponentsclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Inherited methods
Alias method to defaultActionBuilder. This just helps to keep the idiom of using Action when creating Routers using the built in components.
Alias method to defaultActionBuilder. This just helps to keep the idiom of using Action when creating Routers using the built in components.
Attributes
- Returns
-
the default action builder.
- Inherited from:
- BuiltInComponents
Helper to interact with the Play build environment. Only available in dev mode.
Helper to interact with the Play build environment. Only available in dev mode.
Attributes
- Inherited from:
- BuiltInComponents
Alias method to playBodyParsers.
Attributes
- Inherited from:
- ServerComponents
Commands that intercept requests before the rest of the application handles them. Used by Evolutions.
Commands that intercept requests before the rest of the application handles them. Used by Evolutions.
Attributes
- Inherited from:
- BuiltInComponents
Inherited and Abstract methods
The router that's used to pass requests to the correct handler.
The router that's used to pass requests to the correct handler.
Attributes
- Inherited from:
- BuiltInComponents
Deprecated and Inherited methods
Helper to locate the source code for the application. Only available in dev mode.
Helper to locate the source code for the application. Only available in dev mode.
Attributes
- Deprecated
- true
- Inherited from:
- BuiltInComponents
Inherited fields
Attributes
- Inherited from:
- PekkoComponents
Attributes
- Inherited from:
- BuiltInComponents
Attributes
- Inherited from:
- ServerComponents
Attributes
- Inherited from:
- PekkoComponents
Attributes
- Inherited from:
- ServerComponents
Attributes
- Inherited from:
- BuiltInComponents
Attributes
- Inherited from:
- PekkoComponents
Attributes
- Inherited from:
- BuiltInComponents
Attributes
- Inherited from:
- BuiltInComponents
Attributes
- Inherited from:
- BuiltInComponents
Attributes
- Inherited from:
- ServerComponents
Attributes
- Inherited from:
- BuiltInComponents
Attributes
- Inherited from:
- BuiltInComponents
Attributes
- Inherited from:
- BuiltInComponents
Attributes
- Inherited from:
- NoHttpFiltersComponents
Attributes
- Inherited from:
- BuiltInComponents
The runtime Injector instance provided to the DefaultApplication. This injector is set up to allow existing (deprecated) legacy APIs to function. It is not set up to support injecting arbitrary Play components.
The runtime Injector instance provided to the DefaultApplication. This injector is set up to allow existing (deprecated) legacy APIs to function. It is not set up to support injecting arbitrary Play components.
Attributes
- Inherited from:
- BuiltInComponents
Attributes
- Inherited from:
- I18nComponents
Attributes
- Inherited from:
- I18nComponents
Attributes
- Inherited from:
- BuiltInComponents
Attributes
- Inherited from:
- BuiltInComponents
Attributes
- Inherited from:
- PekkoHttpServerComponents
Attributes
- Inherited from:
- ServerComponents
Attributes
- Inherited from:
- BuiltInComponents
Attributes
- Inherited from:
- BuiltInComponents
Deprecated and Inherited fields
Attributes
- Deprecated
- true
- Inherited from:
- BuiltInComponents
Implicits
Inherited implicits
Attributes
- Inherited from:
- PekkoComponents
Attributes
- Inherited from:
- PekkoComponents
Attributes
- Inherited from:
- PekkoTypedComponents