public class RouteResult$ extends LowerPriorityRouteResultImplicits
Modifier and Type | Field and Description |
---|---|
static RouteResult$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
RouteResult$() |
Modifier and Type | Method and Description |
---|---|
akka.stream.scaladsl.Flow<HttpRequest,HttpResponse,akka.NotUsed> |
route2HandlerFlow(scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>> route,
RoutingSettings routingSettings,
ParserSettings parserSettings,
akka.stream.Materializer materializer,
RoutingLog routingLog,
scala.concurrent.ExecutionContext executionContext,
RejectionHandler rejectionHandler,
ExceptionHandler exceptionHandler)
Deprecated.
Replaced by routeToFlow. Since 10.2.0.
|
akka.stream.scaladsl.Flow<HttpRequest,HttpResponse,akka.NotUsed> |
routeToFlow(scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>> route,
akka.actor.ClassicActorSystemProvider system)
Turns a
Route into a server flow. |
scala.Function1<HttpRequest,scala.concurrent.Future<HttpResponse>> |
routeToFunction(scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>> route,
akka.actor.ClassicActorSystemProvider system)
Turns a
Route into a server function. |
routeToFlowViaMaterializer
public static final RouteResult$ MODULE$
public akka.stream.scaladsl.Flow<HttpRequest,HttpResponse,akka.NotUsed> routeToFlow(scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>> route, akka.actor.ClassicActorSystemProvider system)
Route
into a server flow.
This implicit conversion is defined here because Route
is an alias for
RequestContext => Future[RouteResult]
, and the fact that RouteResult
is in that type means this implicit conversion come into scope whereever
a Route
is given but a Flow
is expected.
route
- (undocumented)system
- (undocumented)public scala.Function1<HttpRequest,scala.concurrent.Future<HttpResponse>> routeToFunction(scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>> route, akka.actor.ClassicActorSystemProvider system)
Route
into a server function.
This implicit conversion is defined here because Route
is an alias for
RequestContext => Future[RouteResult]
, and the fact that RouteResult
is in that type means this implicit conversion come into scope whereever
a Route
is given but a Function[HttpRequest, Future[HttpResponse]
is expected.
route
- (undocumented)system
- (undocumented)public akka.stream.scaladsl.Flow<HttpRequest,HttpResponse,akka.NotUsed> route2HandlerFlow(scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>> route, RoutingSettings routingSettings, ParserSettings parserSettings, akka.stream.Materializer materializer, RoutingLog routingLog, scala.concurrent.ExecutionContext executionContext, RejectionHandler rejectionHandler, ExceptionHandler exceptionHandler)