Class/Object

akka.http.scaladsl.server

StandardRoute

Related Docs: object StandardRoute | package server

Permalink

abstract class StandardRoute extends Route

A Route that can be implicitly converted into a Directive (fitting any signature).

Source
StandardRoute.scala
Linear Supertypes
(RequestContext) ⇒ Future[RouteResult], AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StandardRoute
  2. Function1
  3. AnyRef
  4. Any
Implicitly
  1. by toDirective
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StandardRoute()

    Permalink

Abstract Value Members

  1. abstract def apply(v1: RequestContext): Future[RouteResult]

    Permalink
    Definition Classes
    Function1

Concrete Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def &(magnet: ConjunctionMagnet[L]): Out

    Permalink

    Joins two directives into one which extracts the concatenation of its base directive extractions.

    Joins two directives into one which extracts the concatenation of its base directive extractions. NOTE: Extraction joining is an O(N) operation with N being the number of extractions on the right-side.

    Implicit information
    This member is added by an implicit conversion from StandardRoute to Directive[L] performed by method toDirective in akka.http.scaladsl.server.StandardRoute. This conversion will take place only if an implicit value of type Tuple[L] is in scope.
    Definition Classes
    Directive
  4. def +(other: String): String

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  7. def andThen[A](g: (Future[RouteResult]) ⇒ A): (RequestContext) ⇒ A

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  8. def as[A](constructor: ConstructFromTuple[L, A]): Directive1[A]

    Permalink

    Converts this directive into one which, instead of a tuple of type L, creates an instance of type A (which is usually a case class).

    Converts this directive into one which, instead of a tuple of type L, creates an instance of type A (which is usually a case class).

    Implicit information
    This member is added by an implicit conversion from StandardRoute to Directive[L] performed by method toDirective in akka.http.scaladsl.server.StandardRoute. This conversion will take place only if an implicit value of type Tuple[L] is in scope.
    Definition Classes
    Directive
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def compose[A](g: (A) ⇒ RequestContext): (A) ⇒ Future[RouteResult]

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  12. def ensuring(cond: (StandardRoute) ⇒ Boolean, msg: ⇒ Any): StandardRoute

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  18. implicit val ev: Tuple[L]

    Permalink
    Implicit information
    This member is added by an implicit conversion from StandardRoute to Directive[L] performed by method toDirective in akka.http.scaladsl.server.StandardRoute. This conversion will take place only if an implicit value of type Tuple[L] is in scope.
    Definition Classes
    Directive
  19. def finalize(): Unit

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

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

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

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

    Permalink
    Definition Classes
    Any
  24. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. def recover[R >: L](recovery: (Seq[Rejection]) ⇒ Directive[R])(implicit arg0: Tuple[R]): Directive[R]

    Permalink

    Creates a new directive that is able to recover from rejections that were produced by this Directive **before the inner route was applied**.

    Creates a new directive that is able to recover from rejections that were produced by this Directive **before the inner route was applied**.

    Implicit information
    This member is added by an implicit conversion from StandardRoute to Directive[L] performed by method toDirective in akka.http.scaladsl.server.StandardRoute. This conversion will take place only if an implicit value of type Tuple[L] is in scope.
    Definition Classes
    Directive
  28. def recoverPF[R >: L](recovery: PartialFunction[Seq[Rejection], Directive[R]])(implicit arg0: Tuple[R]): Directive[R]

    Permalink

    Variant of recover that only recovers from rejections handled by the given PartialFunction.

    Variant of recover that only recovers from rejections handled by the given PartialFunction.

    Implicit information
    This member is added by an implicit conversion from StandardRoute to Directive[L] performed by method toDirective in akka.http.scaladsl.server.StandardRoute. This conversion will take place only if an implicit value of type Tuple[L] is in scope.
    Definition Classes
    Directive
  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. def tapply(f: (L) ⇒ Route): Route

    Permalink

    Calls the inner route with a tuple of extracted values of type L.

    Calls the inner route with a tuple of extracted values of type L.

    tapply is short for "tuple-apply". Usually, you will use the regular apply method instead, which is added by an implicit conversion (see Directive.addDirectiveApply).

    Implicit information
    This member is added by an implicit conversion from StandardRoute to Directive[L] performed by method toDirective in akka.http.scaladsl.server.StandardRoute. This conversion will take place only if an implicit value of type Tuple[L] is in scope.
    Definition Classes
    Directive
  31. def tfilter(predicate: (L) ⇒ Boolean, rejections: Rejection*): Directive[L]

    Permalink

    Creates a new directive of the same type, which passes if the given predicate matches the current extractions or rejects with the given rejections.

    Creates a new directive of the same type, which passes if the given predicate matches the current extractions or rejects with the given rejections.

    Implicit information
    This member is added by an implicit conversion from StandardRoute to Directive[L] performed by method toDirective in akka.http.scaladsl.server.StandardRoute. This conversion will take place only if an implicit value of type Tuple[L] is in scope.
    Definition Classes
    Directive
  32. def tflatMap[R](f: (L) ⇒ Directive[R])(implicit arg0: Tuple[R]): Directive[R]

    Permalink

    Flatmaps this directive using the given function.

    Flatmaps this directive using the given function.

    Implicit information
    This member is added by an implicit conversion from StandardRoute to Directive[L] performed by method toDirective in akka.http.scaladsl.server.StandardRoute. This conversion will take place only if an implicit value of type Tuple[L] is in scope.
    Definition Classes
    Directive
  33. def tmap[R](f: (L) ⇒ R)(implicit tupler: Tupler[R]): Directive[Out]

    Permalink

    Maps over this directive using the given function, which can produce either a tuple or any other value (which will then we wrapped into a scala.Tuple1).

    Maps over this directive using the given function, which can produce either a tuple or any other value (which will then we wrapped into a scala.Tuple1).

    Implicit information
    This member is added by an implicit conversion from StandardRoute to Directive[L] performed by method toDirective in akka.http.scaladsl.server.StandardRoute. This conversion will take place only if an implicit value of type Tuple[L] is in scope.
    Definition Classes
    Directive
  34. def toDirective[L](implicit arg0: Tuple[L]): Directive[L]

    Permalink
  35. def toString(): String

    Permalink
    Definition Classes
    Function1 → AnyRef → Any
  36. def trequire(predicate: (L) ⇒ Boolean, rejections: Rejection*): Directive0

    Permalink

    Creates a new akka.http.scaladsl.server.Directive0, which passes if the given predicate matches the current extractions or rejects with the given rejections.

    Creates a new akka.http.scaladsl.server.Directive0, which passes if the given predicate matches the current extractions or rejects with the given rejections.

    Implicit information
    This member is added by an implicit conversion from StandardRoute to Directive[L] performed by method toDirective in akka.http.scaladsl.server.StandardRoute. This conversion will take place only if an implicit value of type Tuple[L] is in scope.
    Definition Classes
    Directive
  37. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. def |[R >: L](that: Directive[R]): Directive[R]

    Permalink

    Joins two directives into one which runs the second directive if the first one rejects.

    Joins two directives into one which runs the second directive if the first one rejects.

    Implicit information
    This member is added by an implicit conversion from StandardRoute to Directive[L] performed by method toDirective in akka.http.scaladsl.server.StandardRoute. This conversion will take place only if an implicit value of type Tuple[L] is in scope.
    Definition Classes
    Directive
  41. def [B](y: B): (StandardRoute, B)

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

Inherited from (RequestContext) ⇒ Future[RouteResult]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion toDirective from StandardRoute to Directive[L]

Inherited by implicit conversion any2stringadd from StandardRoute to any2stringadd[StandardRoute]

Inherited by implicit conversion StringFormat from StandardRoute to StringFormat[StandardRoute]

Inherited by implicit conversion Ensuring from StandardRoute to Ensuring[StandardRoute]

Inherited by implicit conversion ArrowAssoc from StandardRoute to ArrowAssoc[StandardRoute]

Ungrouped