Class RouteResult$

    • Field Detail

      • MODULE$

        public static final RouteResult$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • RouteResult$

        public RouteResult$()
    • 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 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.

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

        Parameters:
        route - (undocumented)
        system - (undocumented)
        Returns:
        (undocumented)