abstract class StandardRoute extends Route
A Route that can be implicitly converted into a Directive (fitting any signature).
- Source
- StandardRoute.scala
- Alphabetic
- By Inheritance
- StandardRoute
- Function1
- AnyRef
- Any
- by toDirective
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new StandardRoute()
Abstract Value Members
-
abstract
def
apply(v1: RequestContext): Future[RouteResult]
- Definition Classes
- Function1
Concrete Value Members
-
def
&(magnet: ConjunctionMagnet[L]): Out
Joins two directives into one which extracts the concatenation of its base directive extractions.
Joins two directives into one which extracts the concatenation of its base directive extractions. NOTE: Extraction joining is an O(N) operation with N being the number of extractions on the right-side.
- Implicit
- This member is added by an implicit conversion from StandardRoute to Directive[L] performed by method toDirective in akka.http.scaladsl.server.StandardRoute. This conversion will take place only if an implicit value of type Tuple[L] is in scope.
- Definition Classes
- Directive
-
def
andThen[A](g: (Future[RouteResult]) ⇒ A): (RequestContext) ⇒ A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
def
as[A](constructor: ConstructFromTuple[L, A]): Directive1[A]
Converts this directive into one which, instead of a tuple of type
L
, creates an instance of typeA
(which is usually a case class).Converts this directive into one which, instead of a tuple of type
L
, creates an instance of typeA
(which is usually a case class).- Implicit
- This member is added by an implicit conversion from StandardRoute to Directive[L] performed by method toDirective in akka.http.scaladsl.server.StandardRoute. This conversion will take place only if an implicit value of type Tuple[L] is in scope.
- Definition Classes
- Directive
-
def
compose[A](g: (A) ⇒ RequestContext): (A) ⇒ Future[RouteResult]
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
implicit
val
ev: Tuple[L]
- Implicit
- This member is added by an implicit conversion from StandardRoute to Directive[L] performed by method toDirective in akka.http.scaladsl.server.StandardRoute. This conversion will take place only if an implicit value of type Tuple[L] is in scope.
- Definition Classes
- Directive
-
def
recover[R >: L](recovery: (Seq[Rejection]) ⇒ Directive[R])(implicit arg0: Tuple[R]): Directive[R]
Creates a new directive that is able to recover from rejections that were produced by
this
Directive **before the inner route was applied**.Creates a new directive that is able to recover from rejections that were produced by
this
Directive **before the inner route was applied**.- Implicit
- This member is added by an implicit conversion from StandardRoute to Directive[L] performed by method toDirective in akka.http.scaladsl.server.StandardRoute. This conversion will take place only if an implicit value of type Tuple[L] is in scope.
- Definition Classes
- Directive
-
def
recoverPF[R >: L](recovery: PartialFunction[Seq[Rejection], Directive[R]])(implicit arg0: Tuple[R]): Directive[R]
Variant of
recover
that only recovers from rejections handled by the given PartialFunction.Variant of
recover
that only recovers from rejections handled by the given PartialFunction.- Implicit
- This member is added by an implicit conversion from StandardRoute to Directive[L] performed by method toDirective in akka.http.scaladsl.server.StandardRoute. This conversion will take place only if an implicit value of type Tuple[L] is in scope.
- Definition Classes
- Directive
-
def
tapply(f: (L) ⇒ Route): Route
Calls the inner route with a tuple of extracted values of type
L
.Calls the inner route with a tuple of extracted values of type
L
.tapply
is short for "tuple-apply". Usually, you will use the regularapply
method instead, which is added by an implicit conversion (seeDirective.addDirectiveApply
).- Implicit
- This member is added by an implicit conversion from StandardRoute to Directive[L] performed by method toDirective in akka.http.scaladsl.server.StandardRoute. This conversion will take place only if an implicit value of type Tuple[L] is in scope.
- Definition Classes
- Directive
-
def
tcollect[R](pf: PartialFunction[L, R], rejections: Rejection*)(implicit tupler: Tupler[R]): Directive[Out]
If the given scala.PartialFunction is defined for the input, maps this directive with the given function, which can produce either a tuple or any other value.
If the given scala.PartialFunction is defined for the input, maps this directive with the given function, which can produce either a tuple or any other value. If it is not defined however, the returned directive will reject with the given rejections.
- Implicit
- This member is added by an implicit conversion from StandardRoute to Directive[L] performed by method toDirective in akka.http.scaladsl.server.StandardRoute. This conversion will take place only if an implicit value of type Tuple[L] is in scope.
- Definition Classes
- Directive
-
def
tfilter(predicate: (L) ⇒ Boolean, rejections: Rejection*): Directive[L]
Creates a new directive of the same type, which passes if the given predicate matches the current extractions or rejects with the given rejections.
Creates a new directive of the same type, which passes if the given predicate matches the current extractions or rejects with the given rejections.
- Implicit
- This member is added by an implicit conversion from StandardRoute to Directive[L] performed by method toDirective in akka.http.scaladsl.server.StandardRoute. This conversion will take place only if an implicit value of type Tuple[L] is in scope.
- Definition Classes
- Directive
-
def
tflatMap[R](f: (L) ⇒ Directive[R])(implicit arg0: Tuple[R]): Directive[R]
Flatmaps this directive using the given function.
Flatmaps this directive using the given function.
- Implicit
- This member is added by an implicit conversion from StandardRoute to Directive[L] performed by method toDirective in akka.http.scaladsl.server.StandardRoute. This conversion will take place only if an implicit value of type Tuple[L] is in scope.
- Definition Classes
- Directive
-
def
tmap[R](f: (L) ⇒ R)(implicit tupler: Tupler[R]): Directive[Out]
Maps over this directive using the given function, which can produce either a tuple or any other value (which will then we wrapped into a scala.Tuple1).
Maps over this directive using the given function, which can produce either a tuple or any other value (which will then we wrapped into a scala.Tuple1).
- Implicit
- This member is added by an implicit conversion from StandardRoute to Directive[L] performed by method toDirective in akka.http.scaladsl.server.StandardRoute. This conversion will take place only if an implicit value of type Tuple[L] is in scope.
- Definition Classes
- Directive
- def toDirective[L](implicit arg0: Tuple[L]): Directive[L]
-
def
toString(): String
- Definition Classes
- Function1 → AnyRef → Any
-
def
trequire(predicate: (L) ⇒ Boolean, rejections: Rejection*): Directive0
Creates a new akka.http.scaladsl.server.Directive0, which passes if the given predicate matches the current extractions or rejects with the given rejections.
Creates a new akka.http.scaladsl.server.Directive0, which passes if the given predicate matches the current extractions or rejects with the given rejections.
- Implicit
- This member is added by an implicit conversion from StandardRoute to Directive[L] performed by method toDirective in akka.http.scaladsl.server.StandardRoute. This conversion will take place only if an implicit value of type Tuple[L] is in scope.
- Definition Classes
- Directive
-
def
|[R >: L](that: Directive[R]): Directive[R]
Joins two directives into one which runs the second directive if the first one rejects.
Joins two directives into one which runs the second directive if the first one rejects.
- Implicit
- This member is added by an implicit conversion from StandardRoute to Directive[L] performed by method toDirective in akka.http.scaladsl.server.StandardRoute. This conversion will take place only if an implicit value of type Tuple[L] is in scope.
- Definition Classes
- Directive