Module

Pha.Effects.Http

Package
purescript-pha
Repository
gbagan/purescript-pha

#HTTP Source

#get Source

get :: forall r. String -> Run (http :: HTTP | r) (Maybe String)

#ajax Source

ajax :: forall r. String -> Run (http :: HTTP | r) (Maybe Json)

#interpretHttp Source

interpretHttp :: forall r. Run (aff :: AFF, http :: HTTP | r) Unit -> Run (aff :: AFF | r) Unit

#Http Source

data Http a

Instances

Re-exports from Affjax.ResponseFormat

#ResponseFormatError Source

data ResponseFormatError

Used when an error occurs when attempting to decode into a particular response format. The error that occurred when decoding is included, along with the value that decoding was attempted on.

Constructors

#ResponseFormat Source

data ResponseFormat a

Used to represent how a HTTP response body should be interpreted.

Constructors

#toResponseType Source

toResponseType :: forall a. ResponseFormat a -> String

Converts a Response a into a string representation of the response type that it represents.

#toMediaType Source