Http

object Http
class Object
trait Matchable
class Any
Http.type

Type members

Classlikes

object Decoder

Types

opaque type Decoder[A]

Tries to transforms a response body of type String to a value of type A.

Tries to transforms a response body of type String to a value of type A.

Type parameters:
A

type of the successfully decoded response

Value members

Concrete methods

@SuppressWarnings(scala.Array.apply[java.lang.String]("scalafix:DisableSyntax.null")(scala.reflect.ClassTag.apply[java.lang.String](classOf[java.lang.String])))
def send[A, Msg](request: Request[A], resultToMessage: Either[HttpError, A] => Msg): Cmd[Msg]

Send an HTTP request.

Send an HTTP request.

Type parameters:
A

type of the successfully decoded response

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