LowerPriorityRouteResultImplicits

org.apache.pekko.http.scaladsl.server.LowerPriorityRouteResultImplicits
sealed abstract class LowerPriorityRouteResultImplicits

Attributes

Source
RouteResult.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object RouteResult

Members list

Implicits

Deprecated implicits

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.

Attributes

Deprecated
true
Source
RouteResult.scala