Module Data.DOM.Simple.Ajax
data ReadyState
= Unsent
| Opened
| HeadersReceived
| Loading
| Done
| Unknown Int
data HttpMethod
= GET
| POST
| PUT
| DELETE
| PATCH
| HEAD
| OPTIONS
| JSONP
| HttpMethod String
instance showHttpMethod :: Show HttpMethod
data ResponseType
= Default
| ArrayBuffer
| Blob
| Document
| Json
| Text
| MozBlob
| MozChunkedText
| MozChunkedArrayBuffer
instance showResponseType :: Show ResponseType
data ArrayBufferView :: *
data HttpData a
= NoData
| TextData String
| ArrayBufferData ArrayBuffer
| ArrayBufferViewData ArrayBufferView
| BlobData Blob
| FormData FormData
| DocumentData HTMLDocument
| JsonData a
makeXMLHttpRequest :: forall eff . Eff (dom :: DOM | eff ) XMLHttpRequest
readyState :: forall eff . XMLHttpRequest -> Eff (dom :: DOM | eff ) ReadyState
onReadyStateChange :: forall eff e . Eff e Unit -> XMLHttpRequest -> Eff (dom :: DOM | eff ) Unit
open :: forall eff . HttpMethod -> Url -> XMLHttpRequest -> Eff (dom :: DOM | eff ) Unit
send :: forall eff a . HttpData a -> XMLHttpRequest -> Eff (dom :: DOM | eff ) Unit
setResponseType :: forall eff . ResponseType -> XMLHttpRequest -> Eff (dom :: DOM | eff ) Unit
responseType :: forall eff . XMLHttpRequest -> Eff (dom :: DOM | eff ) ResponseType
response :: forall eff a . XMLHttpRequest -> Eff (dom :: DOM | eff ) (HttpData a )
responseText :: forall eff . XMLHttpRequest -> Eff (dom :: DOM | eff ) String
status :: forall eff . XMLHttpRequest -> Eff (dom :: DOM | eff ) Int
statusText :: forall eff . XMLHttpRequest -> Eff (dom :: DOM | eff ) String
setRequestHeader
setRequestHeader :: forall eff . String -> String -> XMLHttpRequest -> Eff (dom :: DOM | eff ) Unit
getAllResponseHeaders
getAllResponseHeaders :: forall eff . XMLHttpRequest -> Eff (dom :: DOM | eff ) String
getResponseHeader
getResponseHeader :: forall eff . String -> XMLHttpRequest -> Eff (dom :: DOM | eff ) (Maybe String )
overrideMimeType :: forall eff . String -> XMLHttpRequest -> Eff (dom :: DOM | eff ) Unit