Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class (IsEventTarget o, IsGObject o) => IsXMLHttpRequestEventTarget o
- newtype XMLHttpRequestEventTarget = XMLHttpRequestEventTarget {}
- newtype XMLHttpRequest = XMLHttpRequest {}
- gTypeXMLHttpRequest :: JSM GType
- toXMLHttpRequestEventTarget :: IsXMLHttpRequestEventTarget o => o -> XMLHttpRequestEventTarget
- gTypeXMLHttpRequestEventTarget :: JSM GType
- loadStart :: (IsXMLHttpRequestEventTarget self, IsEventTarget self) => EventName self ProgressEvent
- progress :: (IsXMLHttpRequestEventTarget self, IsEventTarget self) => EventName self XMLHttpRequestProgressEvent
- abortEvent :: (IsXMLHttpRequestEventTarget self, IsEventTarget self) => EventName self XMLHttpRequestProgressEvent
- error :: (IsXMLHttpRequestEventTarget self, IsEventTarget self) => EventName self XMLHttpRequestProgressEvent
- load :: (IsXMLHttpRequestEventTarget self, IsEventTarget self) => EventName self XMLHttpRequestProgressEvent
- timeout :: (IsXMLHttpRequestEventTarget self, IsEventTarget self) => EventName self ProgressEvent
- loadEnd :: (IsXMLHttpRequestEventTarget self, IsEventTarget self) => EventName self ProgressEvent
- pattern DONE :: forall a. (Eq a, Num a) => a
- pattern LOADING :: forall a. (Eq a, Num a) => a
- pattern HEADERS_RECEIVED :: forall a. (Eq a, Num a) => a
- pattern OPENED :: forall a. (Eq a, Num a) => a
- pattern UNSENT :: forall a. (Eq a, Num a) => a
- newXMLHttpRequest :: MonadDOM m => m XMLHttpRequest
- openSimple :: (MonadDOM m, ToJSString method, ToJSString url) => XMLHttpRequest -> method -> url -> m ()
- open :: (MonadDOM m, ToJSString method, ToJSString url, ToJSString user, ToJSString password) => XMLHttpRequest -> method -> url -> Bool -> Maybe user -> Maybe password -> m ()
- setRequestHeader :: (MonadDOM m, ToJSString header, ToJSString value) => XMLHttpRequest -> header -> value -> m ()
- abort :: MonadDOM m => XMLHttpRequest -> 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 ()
- readyStateChange :: EventName XMLHttpRequest Event
- getReadyState :: MonadDOM m => XMLHttpRequest -> m Word
- setTimeout :: MonadDOM m => XMLHttpRequest -> Word -> m ()
- getTimeout :: MonadDOM m => XMLHttpRequest -> m Word
- setWithCredentials :: MonadDOM m => XMLHttpRequest -> Bool -> m ()
- getWithCredentials :: MonadDOM m => XMLHttpRequest -> m Bool
- getUpload :: MonadDOM m => XMLHttpRequest -> m XMLHttpRequestUpload
- getResponseURL :: (MonadDOM m, FromJSString result) => XMLHttpRequest -> m result
- getStatus :: MonadDOM m => XMLHttpRequest -> m Word
- getStatusText :: (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
- 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
class (IsEventTarget o, IsGObject o) => IsXMLHttpRequestEventTarget o Source #
Instances
newtype XMLHttpRequestEventTarget Source #
Functions for this inteface are in JSDOM.XMLHttpRequestEventTarget. Base interface functions are in:
Instances
PToJSVal XMLHttpRequestEventTarget Source # | |
Defined in JSDOM.Types | |
PFromJSVal XMLHttpRequestEventTarget Source # | |
Defined in JSDOM.Types | |
ToJSVal XMLHttpRequestEventTarget Source # | |
Defined in JSDOM.Types toJSVal :: XMLHttpRequestEventTarget -> JSM JSVal # toJSValListOf :: [XMLHttpRequestEventTarget] -> JSM JSVal # | |
FromJSVal XMLHttpRequestEventTarget Source # | |
Defined in JSDOM.Types | |
MakeObject XMLHttpRequestEventTarget Source # | |
Defined in JSDOM.Types | |
IsXMLHttpRequestEventTarget XMLHttpRequestEventTarget Source # | |
Defined in JSDOM.Types | |
IsEventTarget XMLHttpRequestEventTarget Source # | |
Defined in JSDOM.Types | |
IsGObject XMLHttpRequestEventTarget Source # | |
Defined in JSDOM.Types |
newtype XMLHttpRequest Source #
Functions for this inteface are in JSDOM.XMLHttpRequest. Base interface functions are in:
Instances
PToJSVal XMLHttpRequest Source # | |
Defined in JSDOM.Types pToJSVal :: XMLHttpRequest -> JSVal # | |
PFromJSVal XMLHttpRequest Source # | |
Defined in JSDOM.Types pFromJSVal :: JSVal -> XMLHttpRequest # | |
ToJSVal XMLHttpRequest Source # | |
Defined in JSDOM.Types toJSVal :: XMLHttpRequest -> JSM JSVal # toJSValListOf :: [XMLHttpRequest] -> JSM JSVal # | |
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] # | |
MakeObject XMLHttpRequest Source # | |
Defined in JSDOM.Types makeObject :: XMLHttpRequest -> JSM Object # | |
IsXMLHttpRequestEventTarget XMLHttpRequest Source # | |
Defined in JSDOM.Types | |
IsEventTarget XMLHttpRequest Source # | |
Defined in JSDOM.Types | |
IsGObject XMLHttpRequest Source # | |
Defined in JSDOM.Types typeGType :: XMLHttpRequest -> JSM GType |
toXMLHttpRequestEventTarget :: IsXMLHttpRequestEventTarget o => o -> XMLHttpRequestEventTarget Source #
loadStart :: (IsXMLHttpRequestEventTarget self, IsEventTarget self) => EventName self ProgressEvent Source #
progress :: (IsXMLHttpRequestEventTarget self, IsEventTarget self) => EventName self XMLHttpRequestProgressEvent Source #
abortEvent :: (IsXMLHttpRequestEventTarget self, IsEventTarget self) => EventName self XMLHttpRequestProgressEvent Source #
error :: (IsXMLHttpRequestEventTarget self, IsEventTarget self) => EventName self XMLHttpRequestProgressEvent Source #
load :: (IsXMLHttpRequestEventTarget self, IsEventTarget self) => EventName self XMLHttpRequestProgressEvent Source #
timeout :: (IsXMLHttpRequestEventTarget self, IsEventTarget self) => EventName self ProgressEvent Source #
loadEnd :: (IsXMLHttpRequestEventTarget self, IsEventTarget self) => EventName self ProgressEvent Source #
pattern HEADERS_RECEIVED :: forall a. (Eq a, Num a) => a Source #
openSimple :: (MonadDOM m, ToJSString method, ToJSString url) => XMLHttpRequest -> method -> url -> m () Source #
open :: (MonadDOM m, ToJSString method, ToJSString url, ToJSString user, ToJSString password) => XMLHttpRequest -> method -> url -> Bool -> Maybe user -> Maybe password -> m () Source #
setRequestHeader :: (MonadDOM m, ToJSString header, ToJSString value) => XMLHttpRequest -> header -> value -> m () Source #
abort :: MonadDOM m => XMLHttpRequest -> 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 #
getReadyState :: MonadDOM m => XMLHttpRequest -> m Word Source #
setTimeout :: MonadDOM m => XMLHttpRequest -> Word -> m () Source #
getTimeout :: MonadDOM m => XMLHttpRequest -> m Word Source #
setWithCredentials :: MonadDOM m => XMLHttpRequest -> Bool -> m () Source #
getWithCredentials :: MonadDOM m => XMLHttpRequest -> m Bool Source #
getUpload :: MonadDOM m => XMLHttpRequest -> m XMLHttpRequestUpload Source #
getResponseURL :: (MonadDOM m, FromJSString result) => XMLHttpRequest -> m result Source #
getStatusText :: (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 #
Instances
Eq XHRError Source # | |
Show XHRError Source # | |
Exception XHRError Source # | |
Defined in JSDOM.Custom.XMLHttpRequest toException :: XHRError -> SomeException # fromException :: SomeException -> Maybe XHRError # displayException :: XHRError -> String # |
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 #