Module

Web.XHR.XMLHttpRequest

Package
purescript-web-xhr
Repository
purescript-web/purescript-web-xhr

#XMLHttpRequest Source

data XMLHttpRequest :: Type -> Type

XMLHttpRequests are indexed by their ResponseType

#toEventTarget Source

#xmlHttpRequest Source

xmlHttpRequest :: forall res. ResponseType res -> Effect (XMLHttpRequest res)

#abort Source

abort :: forall res. XMLHttpRequest res -> Effect Unit

#getAllResponseHeaders Source

#getResponseHeader Source

#open' Source

open' :: forall res. { method :: Either Method CustomMethod, password :: Maybe String, url :: String, username :: Maybe String } -> XMLHttpRequest res -> Effect Unit

#overrideMimeType Source

#send Source

send :: forall res. XMLHttpRequest res -> Effect Unit

#sendString Source

sendString :: forall res. String -> XMLHttpRequest res -> Effect Unit

#sendDocument Source

#sendBlob Source

sendBlob :: forall res. Blob -> XMLHttpRequest res -> Effect Unit

#sendArrayView Source

sendArrayView :: forall a res. ArrayView a -> XMLHttpRequest res -> Effect Unit

#sendFormData Source

#setRequestHeader Source

#readyState Source

#response Source

response :: forall res. XMLHttpRequest res -> Effect (Maybe res)

#responseURL Source

responseURL :: forall res. XMLHttpRequest res -> Effect String

#status Source

status :: forall res. XMLHttpRequest res -> Effect Int

#statusText Source

statusText :: forall res. XMLHttpRequest res -> Effect String

#timeout Source

#setTimeout Source

#withCredentials Source

#setWithCredentials Source