Http

object Http

Send HTTP requests as a command

class Object
trait Matchable
class Any
Http.type

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.

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

Returns:

A Cmd that describes the HTTP request