akka.http.scaladsl.server.directives

BasicDirectives

trait BasicDirectives extends AnyRef

Source
BasicDirectives.scala
Linear Supertypes
Known Subclasses
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BasicDirectives
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from BasicDirectives to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (BasicDirectives, B)

    Implicit information
    This member is added by an implicit conversion from BasicDirectives to ArrowAssoc[BasicDirectives] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def cancelRejection(rejection: Rejection): Directive0

    Adds a TransformationRejection cancelling all rejections equal to the given one to the list of rejections potentially coming back from the inner route.

  10. def cancelRejections(cancelFilter: (Rejection) ⇒ Boolean): Directive0

    Adds a TransformationRejection cancelling all rejections for which the given filter function returns true to the list of rejections potentially coming back from the inner route.

  11. def cancelRejections(classes: Class[_]*): Directive0

    Adds a TransformationRejection cancelling all rejections of one of the given classes to the list of rejections potentially coming back from the inner route.

  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def ensuring(cond: (BasicDirectives) ⇒ Boolean, msg: ⇒ Any): BasicDirectives

    Implicit information
    This member is added by an implicit conversion from BasicDirectives to Ensuring[BasicDirectives] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: (BasicDirectives) ⇒ Boolean): BasicDirectives

    Implicit information
    This member is added by an implicit conversion from BasicDirectives to Ensuring[BasicDirectives] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean, msg: ⇒ Any): BasicDirectives

    Implicit information
    This member is added by an implicit conversion from BasicDirectives to Ensuring[BasicDirectives] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean): BasicDirectives

    Implicit information
    This member is added by an implicit conversion from BasicDirectives to Ensuring[BasicDirectives] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  19. def extract[T](f: (RequestContext) ⇒ T): Directive1[T]

    Extracts a single value using the given function.

  20. def extractExecutionContext: Directive1[ExecutionContext]

    Extracts the ExecutionContext from the RequestContext.

  21. def extractLog: Directive1[LoggingAdapter]

    Extracts the LoggingAdapter from the RequestContext.

  22. def extractMaterializer: Directive1[Materializer]

    Extracts the Materializer from the RequestContext.

  23. def extractRequest: Directive1[HttpRequest]

    Extracts the current HttpRequest instance.

  24. def extractRequestContext: Directive1[RequestContext]

    Extracts the RequestContext itself.

  25. def extractSettings: Directive1[RoutingSettings]

    Extracts the RoutingSettings from the RequestContext.

  26. def extractUnmatchedPath: Directive1[Path]

    Extracts the yet unmatched path from the RequestContext.

  27. def extractUri: Directive1[Uri]

    Extracts the complete request URI.

  28. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  29. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from BasicDirectives to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  30. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  31. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  32. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  33. def mapInnerRoute(f: ((RequestContext) ⇒ Future[RouteResult]) ⇒ (RequestContext) ⇒ Future[RouteResult]): Directive0

  34. def mapRejections(f: (Seq[Rejection]) ⇒ Seq[Rejection]): Directive0

  35. def mapRequest(f: (HttpRequest) ⇒ HttpRequest): Directive0

  36. def mapRequestContext(f: (RequestContext) ⇒ RequestContext): Directive0

  37. def mapResponse(f: (HttpResponse) ⇒ HttpResponse): Directive0

  38. def mapResponseEntity(f: (ResponseEntity) ⇒ ResponseEntity): Directive0

  39. def mapResponseHeaders(f: (Seq[HttpHeader]) ⇒ Seq[HttpHeader]): Directive0

  40. def mapRouteResult(f: (RouteResult) ⇒ RouteResult): Directive0

  41. def mapRouteResultFuture(f: (Future[RouteResult]) ⇒ Future[RouteResult]): Directive0

  42. def mapRouteResultPF(f: PartialFunction[RouteResult, RouteResult]): Directive0

  43. def mapRouteResultWith(f: (RouteResult) ⇒ Future[RouteResult]): Directive0

  44. def mapRouteResultWithPF(f: PartialFunction[RouteResult, Future[RouteResult]]): Directive0

  45. def mapSettings(f: (RoutingSettings) ⇒ RoutingSettings): Directive0

    Runs the inner route with settings mapped by the given function.

  46. def mapUnmatchedPath(f: (Path) ⇒ Path): Directive0

    Transforms the unmatchedPath of the RequestContext using the given function.

  47. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  48. final def notify(): Unit

    Definition Classes
    AnyRef
  49. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  50. def pass: Directive0

    A Directive0 that always passes the request on to its inner route (i.

    A Directive0 that always passes the request on to its inner route (i.e. does nothing with the request or the response).

  51. def provide[T](value: T): Directive1[T]

    Injects the given value into a directive.

  52. def recoverRejections(f: (Seq[Rejection]) ⇒ RouteResult): Directive0

  53. def recoverRejectionsWith(f: (Seq[Rejection]) ⇒ Future[RouteResult]): Directive0

  54. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  55. def textract[L](f: (RequestContext) ⇒ L)(implicit arg0: Tuple[L]): Directive[L]

    Extracts a number of values using the given function.

  56. def toString(): String

    Definition Classes
    AnyRef → Any
  57. def tprovide[L](values: L)(implicit arg0: Tuple[L]): Directive[L]

    Injects the given values into a directive.

  58. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  59. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  60. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  61. def withExecutionContext(ec: ExecutionContext): Directive0

    Runs its inner route with the given alternative ExecutionContext.

  62. def withLog(log: LoggingAdapter): Directive0

    Runs its inner route with the given alternative LoggingAdapter.

  63. def withMaterializer(materializer: Materializer): Directive0

    Runs its inner route with the given alternative Materializer.

  64. def withSettings(settings: RoutingSettings): Directive0

    Runs its inner route with the given alternative RoutingSettings.

  65. def [B](y: B): (BasicDirectives, B)

    Implicit information
    This member is added by an implicit conversion from BasicDirectives to ArrowAssoc[BasicDirectives] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from BasicDirectives to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (basicDirectives: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from BasicDirectives to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (basicDirectives: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: BasicDirectives

    Implicit information
    This member is added by an implicit conversion from BasicDirectives to ArrowAssoc[BasicDirectives] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (basicDirectives: ArrowAssoc[BasicDirectives]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: BasicDirectives

    Implicit information
    This member is added by an implicit conversion from BasicDirectives to Ensuring[BasicDirectives] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (basicDirectives: Ensuring[BasicDirectives]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from BasicDirectives to StringAdd

Inherited by implicit conversion any2stringfmt from BasicDirectives to StringFormat

Inherited by implicit conversion any2ArrowAssoc from BasicDirectives to ArrowAssoc[BasicDirectives]

Inherited by implicit conversion any2Ensuring from BasicDirectives to Ensuring[BasicDirectives]

Ungrouped