Class Directive$
java.lang.Object
org.apache.pekko.http.scaladsl.server.Directive$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Directive$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionscala.Function1<scala.Function0<scala.Function1<RequestContext,scala.concurrent.Future<RouteResult>>>, scala.Function1<RequestContext, scala.concurrent.Future<RouteResult>>> addByNameNullaryApply(Directive<scala.runtime.BoxedUnit> directive) Addsapplyto Directive0.<L> scala.Function1<Object,scala.Function1<RequestContext, scala.concurrent.Future<RouteResult>>> addDirectiveApply(Directive<L> directive, ApplyConverter<L> hac) Addsapplyto 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).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 Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
Directive$
public Directive$()
-
-
Method Details
-
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
A Directive that always passes the request on to its inner route (i.e. does nothing).- Returns:
- (undocumented)
-
addDirectiveApply
public <L> scala.Function1<Object,scala.Function1<RequestContext, addDirectiveApplyscala.concurrent.Future<RouteResult>>> (Directive<L> directive, ApplyConverter<L> hac) Addsapplyto 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>>>, addByNameNullaryApplyscala.Function1<RequestContext, scala.concurrent.Future<RouteResult>>> (Directive<scala.runtime.BoxedUnit> directive) Addsapplyto Directive0. Note: Theapplyparameter 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)
-