Module

Network.HTTP.Affjax.Response

Package
purescript-affjax
Repository
slamdata/purescript-affjax

#ResponseType Source

data ResponseType a

Valid response types for an AJAX request. This is used to determine the ResponseContent type for a request. The a type variable is a phantom type used to associate the ResponseType with a particular instance of Respondable.

Constructors

Instances

#responseTypeToString Source

#ResponseContent Source

type ResponseContent = Foreign

Type representing content types that be received from an XHR request (Blob, Document, JSON, String). An optional mime-type can be specified for a default Accept header.