tyrian.http
package tyrian.http
Type members
Classlikes
A request header
A request header
- Value parameters:
- name
header field name
- value
header field value
enum HttpError
An Error will be returned if something goes wrong with an HTTP request.
An Error will be returned if something goes wrong with an HTTP request.
Describes an HTTP request.
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
The response from an HTTP request.
The response from an HTTP request.
- Type parameters:
- A
type of the response body
- Value parameters:
- body
the response body
- headers
the response headers
- status
the status code
- url
the url