Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype XMLHttpRequest = XMLHttpRequest {}
- newtype XMLHttpRequestEventTarget = XMLHttpRequestEventTarget {}
- class (IsEventTarget o, IsGObject o) => IsXMLHttpRequestEventTarget o
- pattern LOADING :: (Eq a, Num a) => a
- pattern DONE :: (Eq a, Num a) => a
- pattern UNSENT :: (Eq a, Num a) => a
- pattern OPENED :: (Eq a, Num a) => a
- pattern HEADERS_RECEIVED :: (Eq a, Num a) => a
- abort :: MonadDOM m => XMLHttpRequest -> m ()
- error :: (IsXMLHttpRequestEventTarget self, IsEventTarget self) => EventName self XMLHttpRequestProgressEvent
- timeout :: (IsXMLHttpRequestEventTarget self, IsEventTarget self) => EventName self ProgressEvent
- getStatus :: MonadDOM m => XMLHttpRequest -> m Word
- progress :: (IsXMLHttpRequestEventTarget self, IsEventTarget self) => EventName self XMLHttpRequestProgressEvent
- getReadyState :: MonadDOM m => XMLHttpRequest -> m Word
- readyStateChange :: EventName XMLHttpRequest Event
- getWithCredentials :: MonadDOM m => XMLHttpRequest -> m Bool
- open :: (MonadDOM m, ToJSString method, ToJSString url, ToJSString user, ToJSString password) => XMLHttpRequest -> method -> url -> Bool -> Maybe user -> Maybe password -> m ()
- loadStart :: (IsXMLHttpRequestEventTarget self, IsEventTarget self) => EventName self ProgressEvent
- load :: (IsXMLHttpRequestEventTarget self, IsEventTarget self) => EventName self XMLHttpRequestProgressEvent
- abortEvent :: (IsXMLHttpRequestEventTarget self, IsEventTarget self) => EventName self XMLHttpRequestProgressEvent
- loadEnd :: (IsXMLHttpRequestEventTarget self, IsEventTarget self) => EventName self ProgressEvent
- getStatusText :: (MonadDOM m, FromJSString result) => XMLHttpRequest -> m result
- setTimeout :: MonadDOM m => XMLHttpRequest -> Word -> m ()
- newXMLHttpRequest :: MonadDOM m => m XMLHttpRequest
- openSimple :: (MonadDOM m, ToJSString method, ToJSString url) => XMLHttpRequest -> method -> url -> m ()
- setRequestHeader :: (MonadDOM m, ToJSString header, ToJSString value) => XMLHttpRequest -> header -> value -> m ()
- getResponseHeader :: (MonadDOM m, ToJSString name, FromJSString result) => XMLHttpRequest -> name -> m (Maybe result)
- getResponseHeader_ :: (MonadDOM m, ToJSString name) => XMLHttpRequest -> name -> m ()
- getResponseHeaderUnsafe :: (MonadDOM m, ToJSString name, HasCallStack, FromJSString result) => XMLHttpRequest -> name -> m result
- getResponseHeaderUnchecked :: (MonadDOM m, ToJSString name, FromJSString result) => XMLHttpRequest -> name -> m result
- getAllResponseHeaders :: (MonadDOM m, FromJSString result) => XMLHttpRequest -> m result
- getAllResponseHeaders_ :: MonadDOM m => XMLHttpRequest -> m ()
- overrideMimeType :: (MonadDOM m, ToJSString mime) => XMLHttpRequest -> mime -> m ()
- getTimeout :: MonadDOM m => XMLHttpRequest -> m Word
- setWithCredentials :: MonadDOM m => XMLHttpRequest -> Bool -> m ()
- getUpload :: MonadDOM m => XMLHttpRequest -> m XMLHttpRequestUpload
- getResponseURL :: (MonadDOM m, FromJSString result) => XMLHttpRequest -> m result
- setResponseType :: MonadDOM m => XMLHttpRequest -> XMLHttpRequestResponseType -> m ()
- getResponseType :: MonadDOM m => XMLHttpRequest -> m XMLHttpRequestResponseType
- getResponse :: MonadDOM m => XMLHttpRequest -> m JSVal
- getResponseText :: (MonadDOM m, FromJSString result) => XMLHttpRequest -> m (Maybe result)
- getResponseTextUnsafe :: (MonadDOM m, HasCallStack, FromJSString result) => XMLHttpRequest -> m result
- getResponseTextUnchecked :: (MonadDOM m, FromJSString result) => XMLHttpRequest -> m result
- getResponseXML :: MonadDOM m => XMLHttpRequest -> m (Maybe Document)
- getResponseXMLUnsafe :: (MonadDOM m, HasCallStack) => XMLHttpRequest -> m Document
- getResponseXMLUnchecked :: MonadDOM m => XMLHttpRequest -> m Document
- gTypeXMLHttpRequest :: JSM GType
- gTypeXMLHttpRequestEventTarget :: JSM GType
- toXMLHttpRequestEventTarget :: IsXMLHttpRequestEventTarget o => o -> XMLHttpRequestEventTarget
- data XHRError
- send :: MonadDOM m => XMLHttpRequest -> m ()
- sendString :: (MonadDOM m, ToJSString str) => XMLHttpRequest -> str -> m ()
- sendArrayBuffer :: (MonadDOM m, IsArrayBufferView view) => XMLHttpRequest -> view -> m ()
- sendBlob :: (MonadDOM m, IsBlob blob) => XMLHttpRequest -> blob -> m ()
- sendDocument :: (MonadDOM m, IsDocument doc) => XMLHttpRequest -> doc -> m ()
- sendFormData :: MonadDOM m => XMLHttpRequest -> FormData -> m ()
Documentation
newtype XMLHttpRequest Source #
Functions for this inteface are in JSDOM.XMLHttpRequest. Base interface functions are in:
Instances
FromJSVal XMLHttpRequest Source # | |
Defined in JSDOM.Types fromJSVal :: JSVal -> JSM (Maybe XMLHttpRequest) # fromJSValUnchecked :: JSVal -> JSM XMLHttpRequest # fromJSValListOf :: JSVal -> JSM (Maybe [XMLHttpRequest]) # fromJSValUncheckedListOf :: JSVal -> JSM [XMLHttpRequest] # | |
PFromJSVal XMLHttpRequest Source # | |
Defined in JSDOM.Types pFromJSVal :: JSVal -> XMLHttpRequest # | |
PToJSVal XMLHttpRequest Source # | |
Defined in JSDOM.Types pToJSVal :: XMLHttpRequest -> JSVal # | |
ToJSVal XMLHttpRequest Source # | |
Defined in JSDOM.Types toJSVal :: XMLHttpRequest -> JSM JSVal # toJSValListOf :: [XMLHttpRequest] -> JSM JSVal # | |
MakeObject XMLHttpRequest Source # | |
Defined in JSDOM.Types makeObject :: XMLHttpRequest -> JSM Object # | |
IsEventTarget XMLHttpRequest Source # | |
Defined in JSDOM.Types | |
IsGObject XMLHttpRequest Source # | |
Defined in JSDOM.Types typeGType :: XMLHttpRequest -> JSM GType | |
IsXMLHttpRequestEventTarget XMLHttpRequest Source # | |
Defined in JSDOM.Types |
newtype XMLHttpRequestEventTarget Source #
Functions for this inteface are in JSDOM.XMLHttpRequestEventTarget. Base interface functions are in:
Instances
FromJSVal XMLHttpRequestEventTarget Source # | |
Defined in JSDOM.Types | |
PFromJSVal XMLHttpRequestEventTarget Source # | |
Defined in JSDOM.Types | |
PToJSVal XMLHttpRequestEventTarget Source # | |
Defined in JSDOM.Types | |
ToJSVal XMLHttpRequestEventTarget Source # | |
Defined in JSDOM.Types toJSVal :: XMLHttpRequestEventTarget -> JSM JSVal # toJSValListOf :: [XMLHttpRequestEventTarget] -> JSM JSVal # | |
MakeObject XMLHttpRequestEventTarget Source # | |
Defined in JSDOM.Types | |
IsEventTarget XMLHttpRequestEventTarget Source # | |
Defined in JSDOM.Types | |
IsGObject XMLHttpRequestEventTarget Source # | |
Defined in JSDOM.Types | |
IsXMLHttpRequestEventTarget XMLHttpRequestEventTarget Source # | |
Defined in JSDOM.Types |
class (IsEventTarget o, IsGObject o) => IsXMLHttpRequestEventTarget o Source #
Instances
pattern HEADERS_RECEIVED :: (Eq a, Num a) => a Source #
abort :: MonadDOM m => XMLHttpRequest -> m () Source #
error :: (IsXMLHttpRequestEventTarget self, IsEventTarget self) => EventName self XMLHttpRequestProgressEvent Source #
timeout :: (IsXMLHttpRequestEventTarget self, IsEventTarget self) => EventName self ProgressEvent Source #
progress :: (IsXMLHttpRequestEventTarget self, IsEventTarget self) => EventName self XMLHttpRequestProgressEvent Source #
getReadyState :: MonadDOM m => XMLHttpRequest -> m Word Source #
getWithCredentials :: MonadDOM m => XMLHttpRequest -> m Bool Source #
open :: (MonadDOM m, ToJSString method, ToJSString url, ToJSString user, ToJSString password) => XMLHttpRequest -> method -> url -> Bool -> Maybe user -> Maybe password -> m () Source #
loadStart :: (IsXMLHttpRequestEventTarget self, IsEventTarget self) => EventName self ProgressEvent Source #
load :: (IsXMLHttpRequestEventTarget self, IsEventTarget self) => EventName self XMLHttpRequestProgressEvent Source #
abortEvent :: (IsXMLHttpRequestEventTarget self, IsEventTarget self) => EventName self XMLHttpRequestProgressEvent Source #
loadEnd :: (IsXMLHttpRequestEventTarget self, IsEventTarget self) => EventName self ProgressEvent Source #
getStatusText :: (MonadDOM m, FromJSString result) => XMLHttpRequest -> m result Source #
setTimeout :: MonadDOM m => XMLHttpRequest -> Word -> m () Source #
openSimple :: (MonadDOM m, ToJSString method, ToJSString url) => XMLHttpRequest -> method -> url -> m () Source #
setRequestHeader :: (MonadDOM m, ToJSString header, ToJSString value) => XMLHttpRequest -> header -> value -> m () Source #
getResponseHeader :: (MonadDOM m, ToJSString name, FromJSString result) => XMLHttpRequest -> name -> m (Maybe result) Source #
getResponseHeader_ :: (MonadDOM m, ToJSString name) => XMLHttpRequest -> name -> m () Source #
getResponseHeaderUnsafe :: (MonadDOM m, ToJSString name, HasCallStack, FromJSString result) => XMLHttpRequest -> name -> m result Source #
getResponseHeaderUnchecked :: (MonadDOM m, ToJSString name, FromJSString result) => XMLHttpRequest -> name -> m result Source #
getAllResponseHeaders :: (MonadDOM m, FromJSString result) => XMLHttpRequest -> m result Source #
getAllResponseHeaders_ :: MonadDOM m => XMLHttpRequest -> m () Source #
overrideMimeType :: (MonadDOM m, ToJSString mime) => XMLHttpRequest -> mime -> m () Source #
getTimeout :: MonadDOM m => XMLHttpRequest -> m Word Source #
setWithCredentials :: MonadDOM m => XMLHttpRequest -> Bool -> m () Source #
getUpload :: MonadDOM m => XMLHttpRequest -> m XMLHttpRequestUpload Source #
getResponseURL :: (MonadDOM m, FromJSString result) => XMLHttpRequest -> m result Source #
setResponseType :: MonadDOM m => XMLHttpRequest -> XMLHttpRequestResponseType -> m () Source #
getResponseType :: MonadDOM m => XMLHttpRequest -> m XMLHttpRequestResponseType Source #
getResponse :: MonadDOM m => XMLHttpRequest -> m JSVal Source #
getResponseText :: (MonadDOM m, FromJSString result) => XMLHttpRequest -> m (Maybe result) Source #
getResponseTextUnsafe :: (MonadDOM m, HasCallStack, FromJSString result) => XMLHttpRequest -> m result Source #
getResponseTextUnchecked :: (MonadDOM m, FromJSString result) => XMLHttpRequest -> m result Source #
getResponseXML :: MonadDOM m => XMLHttpRequest -> m (Maybe Document) Source #
getResponseXMLUnsafe :: (MonadDOM m, HasCallStack) => XMLHttpRequest -> m Document Source #
getResponseXMLUnchecked :: MonadDOM m => XMLHttpRequest -> m Document Source #
toXMLHttpRequestEventTarget :: IsXMLHttpRequestEventTarget o => o -> XMLHttpRequestEventTarget Source #
Instances
Exception XHRError Source # | |
Defined in JSDOM.Custom.XMLHttpRequest toException :: XHRError -> SomeException # fromException :: SomeException -> Maybe XHRError # displayException :: XHRError -> String # | |
Show XHRError Source # | |
Eq XHRError Source # | |
send :: MonadDOM m => XMLHttpRequest -> m () Source #
sendString :: (MonadDOM m, ToJSString str) => XMLHttpRequest -> str -> m () Source #
sendArrayBuffer :: (MonadDOM m, IsArrayBufferView view) => XMLHttpRequest -> view -> m () Source #
sendDocument :: (MonadDOM m, IsDocument doc) => XMLHttpRequest -> doc -> m () Source #
sendFormData :: MonadDOM m => XMLHttpRequest -> FormData -> m () Source #