Packages

object RouteResult extends LowerPriorityRouteResultImplicits

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RouteResult
  2. LowerPriorityRouteResultImplicits
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. final case class Complete(response: HttpResponse) extends javadsl.server.Complete with RouteResult with Product with Serializable
  2. final case class Rejected(rejections: Seq[Rejection]) extends javadsl.server.Rejected with RouteResult with Product with Serializable

Value Members

  1. 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 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.

  2. 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 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.

Deprecated Value Members

  1. 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

  2. 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 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.

    Definition Classes
    LowerPriorityRouteResultImplicits
    Annotations
    @deprecated
    Deprecated

    (Since version 10.2.0) make an ActorSystem available implicitly instead