Safe Haskell | None |
---|---|
Language | Haskell98 |
Documentation
data XhrResponse Source
xhrRequest :: String -> String -> XhrRequestConfig -> XhrRequest Source
newXMLHttpRequest :: (HasWebView m, MonadIO m, HasPostGui t h m) => XhrRequest -> (XhrResponse -> h ()) -> m XMLHttpRequest Source
performRequestAsync :: MonadWidget t m => Event t XhrRequest -> m (Event t XhrResponse) Source
performRequestsAsync :: (Traversable f, MonadWidget t m) => Event t (f XhrRequest) -> m (Event t (f XhrResponse)) Source
getAndDecode :: (FromJSON a, MonadWidget t m) => Event t String -> m (Event t (Maybe a)) Source
getMay :: MonadWidget t m => (Event t a -> m (Event t b)) -> Event t (Maybe a) -> m (Event t (Maybe b)) Source
decodeText :: FromJSON a => Text -> Maybe a Source
decodeXhrResponse :: FromJSON a => XhrResponse -> Maybe a Source
xmlHttpRequestOnreadystatechange :: XMLHttpRequest -> IO () -> IO () Source
xmlHttpRequestOpen :: XMLHttpRequest -> String -> String -> Bool -> String -> String -> IO () Source
xmlHttpRequestSend :: XMLHttpRequest -> Maybe String -> IO () Source
xmlHttpRequestSetRequestHeader :: XMLHttpRequest -> String -> String -> IO () Source
xmlHttpRequestSetResponseType :: XMLHttpRequest -> String -> IO () Source