public class Directive$
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Directive$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
Directive$() |
Modifier and Type | Method and Description |
---|---|
scala.Function1<scala.Function0<scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>>>,scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>>> |
addByNameNullaryApply(Directive<scala.runtime.BoxedUnit> directive)
Adds
apply to Directive0. |
<L> scala.Function1<java.lang.Object,scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>>> |
addDirectiveApply(Directive<L> directive,
ApplyConverter<L> hac)
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]. |
<T> Directive<T> |
apply(scala.Function1<scala.Function1<T,scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>>>,scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>>> f,
Tuple<T> evidence$4)
Constructs a directive from a function literal.
|
Directive<scala.runtime.BoxedUnit> |
Empty()
A Directive that always passes the request on to its inner route (i.e. does nothing).
|
<T> Directive.SingleValueModifiers<T> |
SingleValueModifiers(Directive<scala.Tuple1<T>> underlying)
previous, non-value class implementation kept around for binary compatibility
TODO: remove with next binary incompatible release bump
INTERNAL API
|
public static final Directive$ MODULE$
public <T> Directive<T> apply(scala.Function1<scala.Function1<T,scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>>>,scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>>> f, Tuple<T> evidence$4)
f
- (undocumented)evidence$4
- (undocumented)public Directive<scala.runtime.BoxedUnit> Empty()
public <L> scala.Function1<java.lang.Object,scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>>> addDirectiveApply(Directive<L> directive, ApplyConverter<L> hac)
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].directive
- (undocumented)hac
- (undocumented)public scala.Function1<scala.Function0<scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>>>,scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>>> addByNameNullaryApply(Directive<scala.runtime.BoxedUnit> directive)
apply
to Directive0. Note: The apply
parameter is call-by-name to ensure consistent execution behavior
with the directives producing extractions.directive
- (undocumented)public <T> Directive.SingleValueModifiers<T> SingleValueModifiers(Directive<scala.Tuple1<T>> underlying)
INTERNAL API
underlying
- (undocumented)