trait UrlAndHeaders[A] extends AnyRef
- Alphabetic
- By Inheritance
- UrlAndHeaders
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def decode: EndpointsWithCustomErrors.RequestExtractor[Validated[A]]
Attempts to extract an
Afrom an incoming request.Attempts to extract an
Afrom an incoming request.Two kinds of situations can happen: 1. The incoming request URL does not match
thisdefinition: nothing is extracted (theRequestExtractorreturnsNone) ; 2. The incoming request URL matchesthisdefinition but the headers or parameters are erroneous: theRequestExtractorreturns aSome(Invalid(...)). - abstract def encode(a: A): Call
Reverse routing.
Reverse routing.
- a
Information carried by the request URL and headers
- returns
The URL and HTTP verb matching the
avalue.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toRequest[B](toB: (A) => RequestEntity[B])(toA: (B) => A): Request[B]
Promotes
thisto aRequest[B].Promotes
thisto aRequest[B].- toB
Function defining how to get a
BodyParser[B]from the extractedA- toA
Function defining how to get back an
Afrom theB.
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])