Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- 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 ()
- send :: (MonadDOM m, IsXMLHttpRequestBody body) => XMLHttpRequest -> Maybe body -> 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 ()
- pattern UNSENT :: forall a. (Eq a, Num a) => a
- pattern OPENED :: forall a. (Eq a, Num a) => a
- pattern HEADERS_RECEIVED :: forall a. (Eq a, Num a) => a
- pattern LOADING :: forall a. (Eq a, Num a) => a
- pattern DONE :: forall a. (Eq a, Num a) => a
- 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
- newtype XMLHttpRequest = XMLHttpRequest {}
- gTypeXMLHttpRequest :: JSM GType
Documentation
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 #
send :: (MonadDOM m, IsXMLHttpRequestBody body) => XMLHttpRequest -> Maybe body -> 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 #
pattern HEADERS_RECEIVED :: forall a. (Eq a, Num a) => a 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 #
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 |