Module
Network.HTTP.Affjax.Response
- Package
- purescript-affjax
- Repository
- slamdata/purescript-affjax
#ResponseType Source
data ResponseType aValid 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
Eq (ResponseType a)Show (ResponseType a)
#responseTypeToString Source
responseTypeToString :: forall a. (ResponseType a) -> String#ResponseContent Source
type ResponseContent = ForeignType 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.
#Respondable Source
class Respondable a whereMembers
responseType :: Tuple (Maybe MediaType) (ResponseType a)fromResponse :: ResponseContent -> F a