tyrian.http
Members list
Type members
Classlikes
Send HTTP requests as a command
Send HTTP requests as a command
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Http.type
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.
Attributes
- Supertypes
- Known subtypes
-
case BadRequest
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))
- 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
- Supertypes
The response from an HTTP request.
Types
Tries to transform an response body or http error into to a value of type Msg.
Tries to transform an response body or http error into to a value of type Msg.
Type parameters
- Msg
-
Message type of the successfully decoded response