RouteResult

org.apache.pekko.http.scaladsl.server.RouteResult
See theRouteResult companion trait

Attributes

Companion
trait
Source
RouteResult.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Classlikes

final case class Complete(response: HttpResponse) extends Complete, RouteResult

Attributes

Source
RouteResult.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait RouteResult
trait Complete
trait RouteResult
class Object
trait Matchable
class Any
Show all
final case class Rejected(rejections: Seq[Rejection]) extends Rejected, RouteResult

Attributes

Source
RouteResult.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait RouteResult
trait Rejected
trait RouteResult
class Object
trait Matchable
class Any
Show all

Inherited types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Deprecated methods

def route2HandlerFlow(route: Route)(implicit routingSettings: RoutingSettings, parserSettings: ParserSettings, materializer: Materializer, routingLog: RoutingLog, executionContext: ExecutionContext, rejectionHandler: RejectionHandler, exceptionHandler: ExceptionHandler): Flow[HttpRequest, HttpResponse, NotUsed]

Attributes

Deprecated
true
Source
RouteResult.scala

Implicits

Implicits

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.

Attributes

Source
RouteResult.scala
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.

Attributes

Source
RouteResult.scala

Deprecated and Inherited 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
Inherited from:
LowerPriorityRouteResultImplicits
Source
RouteResult.scala