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))
- 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
an optional timeout
- url
the url
- withCredentials
indicates if the request is using credentials
- Companion:
- object