object RouteResult extends LowerPriorityRouteResultImplicits
- Source
- RouteResult.scala
- Alphabetic
- By Inheritance
- RouteResult
- LowerPriorityRouteResultImplicits
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final case class Complete(response: HttpResponse) extends javadsl.server.Complete with RouteResult with Product with Serializable
- final case class Rejected(rejections: Seq[Rejection]) extends javadsl.server.Rejected with RouteResult with Product with Serializable
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- 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 forRequestContext => Future[RouteResult]
, and the fact thatRouteResult
is in that type means this implicit conversion come into scope whereever aRoute
is given but aFlow
is expected. - 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 forRequestContext => Future[RouteResult]
, and the fact thatRouteResult
is in that type means this implicit conversion come into scope whereever aRoute
is given but aFunction[HttpRequest, Future[HttpResponse]
is expected. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- 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 Akka HTTP 10.2.0) Replaced by routeToFlow
- 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 forRequestContext => Future[RouteResult]
, and the fact thatRouteResult
is in that type means this implicit conversion come into scope whereever aRoute
is given but aFlow
is expected.- Definition Classes
- LowerPriorityRouteResultImplicits
- Annotations
- @deprecated
- Deprecated
(Since version Akka HTTP 10.2.0) make an ActorSystem available implicitly instead