object RouteResult extends LowerPriorityRouteResultImplicits
- Source
- RouteResult.scala
- Alphabetic
- By Inheritance
- RouteResult
- LowerPriorityRouteResultImplicits
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final case class Complete(response: HttpResponse) extends javadsl.server.Complete with RouteResult with Product with Serializable
- final case class Rejected(rejections: Seq[Rejection]) extends javadsl.server.Rejected with RouteResult with Product with Serializable
Value Members
- implicit def routeToFlow(route: Route)(implicit system: ClassicActorSystemProvider): Flow[HttpRequest, HttpResponse, NotUsed]
Turns a
Route
into a server flow.Turns a
Route
into a server flow.This implicit conversion is defined here because
Route
is an alias forRequestContext => Future[RouteResult]
, and the fact thatRouteResult
is in that type means this implicit conversion come into scope whereever aRoute
is given but aFlow
is expected. - implicit def routeToFunction(route: Route)(implicit system: ClassicActorSystemProvider): (HttpRequest) => Future[HttpResponse]
Turns a
Route
into a server function.Turns a
Route
into a server function.This implicit conversion is defined here because
Route
is an alias forRequestContext => Future[RouteResult]
, and the fact thatRouteResult
is in that type means this implicit conversion come into scope whereever aRoute
is given but aFunction[HttpRequest, Future[HttpResponse]
is expected.
Deprecated Value Members
- def route2HandlerFlow(route: Route)(implicit routingSettings: RoutingSettings, parserSettings: ParserSettings, materializer: Materializer, routingLog: RoutingLog, executionContext: ExecutionContext = null, rejectionHandler: RejectionHandler = RejectionHandler.default, exceptionHandler: ExceptionHandler = null): Flow[HttpRequest, HttpResponse, NotUsed]
- Annotations
- @deprecated
- Deprecated
(Since version 10.2.0) Replaced by routeToFlow
- implicit def routeToFlowViaMaterializer(route: Route)(implicit materializer: Materializer): Flow[HttpRequest, HttpResponse, NotUsed]
Turns a
Route
into a server flow.Turns a
Route
into a server flow.This implicit conversion is defined here because
Route
is an alias forRequestContext => Future[RouteResult]
, and the fact thatRouteResult
is in that type means this implicit conversion come into scope whereever aRoute
is given but aFlow
is expected.- Definition Classes
- LowerPriorityRouteResultImplicits
- Annotations
- @deprecated
- Deprecated
(Since version 10.2.0) make an ActorSystem available implicitly instead