data ResponseFormat a
Used to represent how a HTTP response body should be interpreted.
ArrayBuffer (forall f. f ArrayBuffer -> f a)
Blob (forall f. f Blob -> f a)
Document (forall f. f Document -> f a)
Json (forall f. f Json -> f a)
String (forall f. f String -> f a)
Ignore (forall f. f Unit -> f a)
arrayBuffer :: ResponseFormat ArrayBuffer
blob :: ResponseFormat Blob
document :: ResponseFormat Document
json :: ResponseFormat Json
string :: ResponseFormat String
ignore :: ResponseFormat Unit
toResponseType :: forall a. ResponseFormat a -> String
Converts a Response a into a string representation of the response type
that it represents.
toMediaType :: forall a. ResponseFormat a -> Maybe MediaType
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.
ResponseFormatError ForeignError Foreign
printResponseFormatError :: ResponseFormatError -> String