Package akka.http.scaladsl.server
Class Directive$
- java.lang.Object
-
- akka.http.scaladsl.server.Directive$
-
public class Directive$ extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static Directive$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description Directive$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
Addsapply
to Directive0.<L> scala.Function1<java.lang.Object,scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>>>
addDirectiveApply(Directive<L> directive, ApplyConverter<L> hac)
Addsapply
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
-
-
-
Field Detail
-
MODULE$
public static final Directive$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
apply
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)
Constructs a directive from a function literal.- Parameters:
f
- (undocumented)evidence$4
- (undocumented)- Returns:
- (undocumented)
-
Empty
public Directive<scala.runtime.BoxedUnit> Empty()
A Directive that always passes the request on to its inner route (i.e. does nothing).- Returns:
- (undocumented)
-
addDirectiveApply
public <L> scala.Function1<java.lang.Object,scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>>> addDirectiveApply(Directive<L> directive, ApplyConverter<L> hac)
Addsapply
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].- Parameters:
directive
- (undocumented)hac
- (undocumented)- Returns:
- (undocumented)
-
addByNameNullaryApply
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)
Addsapply
to Directive0. Note: Theapply
parameter is call-by-name to ensure consistent execution behavior with the directives producing extractions.- Parameters:
directive
- (undocumented)- Returns:
- (undocumented)
-
SingleValueModifiers
public <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 bumpINTERNAL API
- Parameters:
underlying
- (undocumented)- Returns:
- (undocumented)
-
-