Package akka.http.scaladsl.server
Class RouteResult$
java.lang.Object
akka.http.scaladsl.server.LowerPriorityRouteResultImplicits
akka.http.scaladsl.server.RouteResult$
-
Field Summary
Modifier and TypeFieldDescriptionstatic final RouteResult$
Static reference to the singleton instance of this Scala object. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionakka.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.akka.stream.scaladsl.Flow<HttpRequest,
HttpResponse, akka.NotUsed> routeToFlow
(scala.Function1<RequestContext, scala.concurrent.Future<RouteResult>> route, akka.actor.ClassicActorSystemProvider system) Turns aRoute
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 aRoute
into a server function.Methods inherited from class akka.http.scaladsl.server.LowerPriorityRouteResultImplicits
routeToFlowViaMaterializer
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
RouteResult$
public RouteResult$()
-
-
Method Details
-
routeToFlow
public akka.stream.scaladsl.Flow<HttpRequest,HttpResponse, routeToFlowakka.NotUsed> (scala.Function1<RequestContext, scala.concurrent.Future<RouteResult>> route, akka.actor.ClassicActorSystemProvider system) Turns aRoute
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.- Parameters:
route
- (undocumented)system
- (undocumented)- Returns:
- (undocumented)
-
routeToFunction
public scala.Function1<HttpRequest,scala.concurrent.Future<HttpResponse>> routeToFunction(scala.Function1<RequestContext, scala.concurrent.Future<RouteResult>> route, akka.actor.ClassicActorSystemProvider system) Turns aRoute
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.- Parameters:
route
- (undocumented)system
- (undocumented)- Returns:
- (undocumented)
-
route2HandlerFlow
public akka.stream.scaladsl.Flow<HttpRequest,HttpResponse, route2HandlerFlowakka.NotUsed> (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.
-