Class Directive$

java.lang.Object
akka.http.scaladsl.server.Directive$

public class Directive$ extends Object
  • Field Details

    • MODULE$

      public static final Directive$ 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

      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<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].
      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)
      Adds apply to Directive0. Note: The apply 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 bump

      INTERNAL API

      Parameters:
      underlying - (undocumented)
      Returns:
      (undocumented)