Module

Web.XHR.XMLHttpRequest

#XMLHttpRequest

data XMLHttpRequest :: Type -> Type

XMLHttpRequests are indexed by their ResponseType

#toEventTarget

#xmlHttpRequest

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

#abort

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

#getAllResponseHeaders

#getResponseHeader

#open

#open'

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

#overrideMimeType

#send

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

#sendString

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

#sendDocument

#sendBlob

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

#sendArrayView

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

#sendFormData

#setRequestHeader

#readyState

#response

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

#responseURL

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

#status

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

#statusText

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

#timeout

#setTimeout

#upload

#withCredentials

#setWithCredentials

Modules