Package akka.http.scaladsl.server
Class RouteResult$
- java.lang.Object
-
- akka.http.scaladsl.server.LowerPriorityRouteResultImplicits
-
- akka.http.scaladsl.server.RouteResult$
-
public class RouteResult$ extends LowerPriorityRouteResultImplicits
-
-
Field Summary
Fields Modifier and Type Field Description static RouteResult$MODULE$Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description RouteResult$()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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.akka.stream.scaladsl.Flow<HttpRequest,HttpResponse,akka.NotUsed>routeToFlow(scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>> route, akka.actor.ClassicActorSystemProvider system)Turns aRouteinto a server flow.scala.Function1<HttpRequest,scala.concurrent.Future<HttpResponse>>routeToFunction(scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>> route, akka.actor.ClassicActorSystemProvider system)Turns aRouteinto a server function.-
Methods inherited from class akka.http.scaladsl.server.LowerPriorityRouteResultImplicits
routeToFlowViaMaterializer
-
-
-
-
Field Detail
-
MODULE$
public static final RouteResult$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
routeToFlow
public akka.stream.scaladsl.Flow<HttpRequest,HttpResponse,akka.NotUsed> routeToFlow(scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>> route, akka.actor.ClassicActorSystemProvider system)
Turns aRouteinto a server flow.This implicit conversion is defined here because
Routeis an alias forRequestContext => Future[RouteResult], and the fact thatRouteResultis in that type means this implicit conversion come into scope whereever aRouteis given but aFlowis 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 aRouteinto a server function.This implicit conversion is defined here because
Routeis an alias forRequestContext => Future[RouteResult], and the fact thatRouteResultis in that type means this implicit conversion come into scope whereever aRouteis given but aFunction[HttpRequest, Future[HttpResponse]is expected.- Parameters:
route- (undocumented)system- (undocumented)- Returns:
- (undocumented)
-
route2HandlerFlow
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)
Deprecated.Replaced by routeToFlow. Since 10.2.0.
-
-