Http

tyrian.http.Http$
object Http

Send HTTP requests as a command

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Http.type

Members list

Concise view

Type members

Classlikes

case object NetworkErrorException extends Throwable

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Product
trait Equals
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Self type
case object TimeoutException extends Throwable

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Product
trait Equals
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Self type
case class UnknownErrorException(message: String) extends Throwable

Attributes

Graph
Supertypes
trait Product
trait Equals
class Throwable
trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

def send[F[_] : Async, A, Msg](request: Request[A], resultToMessage: Decoder[Msg]): Cmd[F, Msg]

Send an HTTP request.

Send an HTTP request.

Attributes

A

type of the successfully decoded response

F

Effect type, e.g. IO

Msg

a tyrian Msg

request

the request

resultToMessage

transforms a successful or failed response into a Msg

Returns:

A Cmd that describes the HTTP request