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 |
|---|---|
org.apache.pekko.stream.scaladsl.Flow<HttpRequest,HttpResponse,org.apache.pekko.NotUsed> |
route2HandlerFlow(scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>> route,
RoutingSettings routingSettings,
ParserSettings parserSettings,
org.apache.pekko.stream.Materializer materializer,
RoutingLog routingLog,
scala.concurrent.ExecutionContext executionContext,
RejectionHandler rejectionHandler,
ExceptionHandler exceptionHandler)
Deprecated.
Replaced by routeToFlow. Since Akka HTTP 10.2.0.
|
org.apache.pekko.stream.scaladsl.Flow<HttpRequest,HttpResponse,org.apache.pekko.NotUsed> |
routeToFlow(scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>> route,
org.apache.pekko.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,
org.apache.pekko.actor.ClassicActorSystemProvider system)
Turns a
Route into a server function. |
routeToFlowViaMaterializerpublic static final RouteResult$ MODULE$
public org.apache.pekko.stream.scaladsl.Flow<HttpRequest,HttpResponse,org.apache.pekko.NotUsed> routeToFlow(scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>> route, org.apache.pekko.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, org.apache.pekko.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 org.apache.pekko.stream.scaladsl.Flow<HttpRequest,HttpResponse,org.apache.pekko.NotUsed> route2HandlerFlow(scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>> route, RoutingSettings routingSettings, ParserSettings parserSettings, org.apache.pekko.stream.Materializer materializer, RoutingLog routingLog, scala.concurrent.ExecutionContext executionContext, RejectionHandler rejectionHandler, ExceptionHandler exceptionHandler)