c

dynamics.http

HttpRequest

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
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HttpRequest
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Message
  7. MessageOps
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HttpRequest(method: Method, path: String, headers: HttpHeaders = HttpHeaders.empty, body: Entity = Entity.empty)

Value Members

  1. 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
  2. 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
    MessageMessageOps
  3. val body: Entity
    Definition Classes
    HttpRequestMessage
  4. val headers: HttpHeaders
    Definition Classes
    HttpRequestMessage
  5. val method: Method
  6. val path: String