Module
Web.XHR.XMLHttpRequest
- Package
- purescript-web-xhr
- Repository
- purescript-web/purescript-web-xhr
#XMLHttpRequest Source
data XMLHttpRequest :: Type -> Type
XMLHttpRequest
s are indexed by their ResponseType
#toEventTarget Source
toEventTarget :: forall res. XMLHttpRequest res -> EventTarget
#xmlHttpRequest Source
xmlHttpRequest :: forall res. ResponseType res -> Effect (XMLHttpRequest res)
#getAllResponseHeaders Source
getAllResponseHeaders :: forall res. XMLHttpRequest res -> Effect (Maybe String)
#getResponseHeader Source
getResponseHeader :: forall res. String -> XMLHttpRequest res -> Effect (Maybe String)
#open Source
open :: forall res. Either Method CustomMethod -> String -> XMLHttpRequest res -> Effect Unit
#overrideMimeType Source
overrideMimeType :: forall res. MediaType -> XMLHttpRequest res -> Effect Unit
#sendString Source
sendString :: forall res. String -> XMLHttpRequest res -> Effect Unit
#sendDocument Source
sendDocument :: forall res. Document -> XMLHttpRequest res -> Effect Unit
#sendArrayView Source
sendArrayView :: forall a res. ArrayView a -> XMLHttpRequest res -> Effect Unit
#sendFormData Source
sendFormData :: forall res. FormData -> XMLHttpRequest res -> Effect Unit
#setRequestHeader Source
setRequestHeader :: forall res. String -> String -> XMLHttpRequest res -> Effect Unit
#readyState Source
readyState :: forall res. XMLHttpRequest res -> Effect ReadyState
#responseURL Source
responseURL :: forall res. XMLHttpRequest res -> Effect String
#statusText Source
statusText :: forall res. XMLHttpRequest res -> Effect String
#timeout Source
timeout :: forall res. XMLHttpRequest res -> Effect Milliseconds
#setTimeout Source
setTimeout :: forall res. Milliseconds -> XMLHttpRequest res -> Effect Unit
#upload Source
upload :: forall res. XMLHttpRequest res -> Effect XMLHttpRequestUpload
#withCredentials Source
withCredentials :: forall res. XMLHttpRequest res -> Effect Boolean
#setWithCredentials Source
setWithCredentials :: forall res. Boolean -> XMLHttpRequest res -> Effect Unit