tyrian.http.Request
See theRequest companion object
final case class Request[A](method: Method, headers: List[Header], url: String, body: Body, timeout: FiniteDuration, credentials: RequestCredentials, cache: RequestCache)
Describes an HTTP request.
Type parameters
- A
-
type of the successfully decoded response
Value parameters
- body
-
the request body (EmptyBody or StringBody(contentType: String, body: String))
- credentials
-
indicates if the request is using credentials
- expect
-
tries to transform a Response[String] to a value of type A
- headers
-
a list of request headers
- method
-
GET, POST, PUT, PATCH, DELETE, or OPTIONS
- timeout
-
duration to wait before giving up.
- url
-
the url
Attributes
- Companion
- object
- Graph
-
- Supertypes
Members list
In this article