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

Type members

Classlikes

case object NetworkErrorException extends Throwable

Attributes

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

Attributes

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

Attributes

Supertypes
trait Product
trait Equals
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

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

Send an HTTP request.

Send an HTTP request.

Type parameters

A

type of the successfully decoded response

F

Effect type, e.g. IO

Msg

a tyrian Msg

Value parameters

request

the request

resultToMessage

transforms a successful or failed response into a Msg

Attributes

Returns

A Cmd that describes the HTTP request