case class HttpRequest[F[_]](method: Method, path: String, headers: HttpHeaders = HttpHeaders.empty, body: Entity = Entity.empty) extends Message[F] with Product with Serializable
A low-level request.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- HttpRequest
- Serializable
- Serializable
- Product
- Equals
- Message
- MessageOps
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new HttpRequest(method: Method, path: String, headers: HttpHeaders = HttpHeaders.empty, body: Entity = Entity.empty)
Value Members
-
final
def
as[T](implicit F: FlatMap[F], decoder: EntityDecoder[F, T]): F[T]
Decode the body to specific type inside an effect.
Decode the body to specific type inside an effect. A decode exception is translated into a failed effect. If the DecodeResult was already failed, that failure is kept. This is just one way to handle the DecodeResult.
- Definition Classes
- MessageOps
-
def
attemptAs[T](implicit F: FlatMap[F], decoder: EntityDecoder[F, T]): DecodeResult[F, T]
Decode the body given an implicit decoder to a DecodeResult.
Decode the body given an implicit decoder to a DecodeResult.
- Definition Classes
- Message → MessageOps
-
val
body: Entity
- Definition Classes
- HttpRequest → Message
-
val
headers: HttpHeaders
- Definition Classes
- HttpRequest → Message
- val method: Method
- val path: String