object Directive
- Source
- Directive.scala
- Alphabetic
- By Inheritance
- Directive
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- implicit final class Directive0Support extends AnyVal
Adds helper functions to
Directive0
- implicit final class SingleValueTransformers[T] extends AnyVal
"Standard" transformers for Directive1.
"Standard" transformers for Directive1. Easier to use than
tmap
,tflatMap
, etc. defined on Directive itself, because they provide transparent conversion from Tuple1.
Value Members
- val Empty: Directive0
A Directive that always passes the request on to its inner route (i.e.
A Directive that always passes the request on to its inner route (i.e. does nothing).
- def SingleValueModifiers[T](underlying: Directive1[T]): SingleValueModifiers[T]
previous, non-value class implementation kept around for binary compatibility TODO: remove with next binary incompatible release bump
previous, non-value class implementation kept around for binary compatibility TODO: remove with next binary incompatible release bump
INTERNAL API
- Annotations
- @InternalApi()
- implicit def addByNameNullaryApply(directive: Directive0): (=> Route) => Route
Adds
apply
to Directive0.Adds
apply
to Directive0. Note: Theapply
parameter is call-by-name to ensure consistent execution behavior with the directives producing extractions. - implicit def addDirectiveApply[L](directive: Directive[L])(implicit hac: ApplyConverter[L]): (In) => Route
Adds
apply
to all Directives with 1 or more extractions, which allows specifying an n-ary function to receive the extractions instead of a Function1[TupleX, Route]. - def apply[T](f: ((T) => Route) => Route)(implicit arg0: Tuple[T]): Directive[T]
Constructs a directive from a function literal.