trait Request[A] extends AnyRef
An HTTP request.
Has an instance of InvariantFunctor.
- Alphabetic
- By Inheritance
- Request
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
- abstract def aggregateAndValidate(urlData: UrlData, headersData: HeadersData, entityData: EntityData): Validated[A]
-
abstract
def
entity: RequestEntity[EntityData]
The entity of this request
-
abstract
def
headers: RequestHeaders[HeadersData]
The headers component of this request
-
abstract
def
matchRequest(requestHeader: RequestHeader): Option[RequestEntity[A]]
Returns a
RequestEntity[A](that is, a way to decode the entity of the incoming request) if the incoming request matches the method and URL of this request description. -
abstract
def
method: EndpointsWithCustomErrors.Method
The method of this request
-
abstract
def
url: EndpointsWithCustomErrors.Url[UrlData]
The URL component of this request
- abstract def urlData(a: A): UrlData
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( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
encode(a: A): Call
Reverse routing.
Reverse routing.
- a
Information carried by the request
- returns
The URL and HTTP verb matching the
avalue.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- 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
matchRequestAndParseHeaders(requestHeader: RequestHeader)(entity: (UrlData, HeadersData) ⇒ RequestEntity[A]): Option[RequestEntity[A]]
- returns
If the incoming
requestHeadermatch this request description (the method and URL), validate the request URL parameters and headers. Otherwise, returnsNone.
- Attributes
- protected
-
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
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )