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.
Converts this directive into one which, instead of a tuple of type L
, creates an
instance of type A
(which is usually a case class).
Converts this directive into one which, instead of a tuple of type L
, creates an
instance of type A
(which is usually a case class).
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**.
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.
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 regular apply
method instead,
which is added by an implicit conversion (see Directive.addDirectiveApply
).
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.
Flatmaps this directive using the given function.
Flatmaps this directive using the given function.
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).
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.
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.
A Route that can be implicitly converted into a Directive (fitting any signature).