| ||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||
| Description | ||||||||||||||||||||||||||||||||||
| An HTTP/1.1 compatible wrapper for the HTTP module. | ||||||||||||||||||||||||||||||||||
| Synopsis | ||||||||||||||||||||||||||||||||||
| Documentation | ||||||||||||||||||||||||||||||||||
| data BrowserState connection | ||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||
| data BrowserAction conn a | ||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||
| data Cookie | ||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||
| data Form | ||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||
| data Proxy | ||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||
| browse :: BrowserAction conn a -> IO a | ||||||||||||||||||||||||||||||||||
| Apply a browser action to a state. | ||||||||||||||||||||||||||||||||||
| request :: HStream ty => Request ty -> BrowserAction (HandleStream ty) (URI, Response ty) | ||||||||||||||||||||||||||||||||||
| getBrowserState :: BrowserAction t (BrowserState t) | ||||||||||||||||||||||||||||||||||
| withBrowserState :: BrowserState t -> BrowserAction t a -> BrowserAction t a | ||||||||||||||||||||||||||||||||||
| setAllowRedirects :: Bool -> BrowserAction t () | ||||||||||||||||||||||||||||||||||
| getAllowRedirects :: BrowserAction t Bool | ||||||||||||||||||||||||||||||||||
| data Authority | ||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||
| getAuthorities :: BrowserAction t [Authority] | ||||||||||||||||||||||||||||||||||
| Interacting with browser state: | ||||||||||||||||||||||||||||||||||
| setAuthorities :: [Authority] -> BrowserAction t () | ||||||||||||||||||||||||||||||||||
| addAuthority :: Authority -> BrowserAction t () | ||||||||||||||||||||||||||||||||||
| getAuthorityGen :: BrowserAction t (URI -> String -> IO (Maybe (String, String))) | ||||||||||||||||||||||||||||||||||
| setAuthorityGen :: (URI -> String -> IO (Maybe (String, String))) -> BrowserAction t () | ||||||||||||||||||||||||||||||||||
| setAllowBasicAuth :: Bool -> BrowserAction t () | ||||||||||||||||||||||||||||||||||
| setCookieFilter :: (URI -> Cookie -> IO Bool) -> BrowserAction t () | ||||||||||||||||||||||||||||||||||
| defaultCookieFilter :: URI -> Cookie -> IO Bool | ||||||||||||||||||||||||||||||||||
| userCookieFilter :: URI -> Cookie -> IO Bool | ||||||||||||||||||||||||||||||||||
| getCookies :: BrowserAction t [Cookie] | ||||||||||||||||||||||||||||||||||
| setCookies :: [Cookie] -> BrowserAction t () | ||||||||||||||||||||||||||||||||||
| addCookie :: Cookie -> BrowserAction t () | ||||||||||||||||||||||||||||||||||
| Adds a cookie to the browser state, removing duplicates. | ||||||||||||||||||||||||||||||||||
| setOutHandler :: (String -> IO ()) -> BrowserAction t () | ||||||||||||||||||||||||||||||||||
| setEventHandler :: (BrowserEvent ty -> BrowserAction ty ()) -> BrowserAction ty () | ||||||||||||||||||||||||||||||||||
| data BrowserEvent ty | ||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||
| data BrowserEventType ty | ||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||
| type RequestID = Int | ||||||||||||||||||||||||||||||||||
| setProxy :: Proxy -> BrowserAction t () | ||||||||||||||||||||||||||||||||||
| setDebugLog :: Maybe String -> BrowserAction t () | ||||||||||||||||||||||||||||||||||
| err :: String -> BrowserAction t () | ||||||||||||||||||||||||||||||||||
| ioAction :: IO a -> BrowserAction t a | ||||||||||||||||||||||||||||||||||
| Do an io action | ||||||||||||||||||||||||||||||||||
| defaultGETRequest :: URI -> Request_String | ||||||||||||||||||||||||||||||||||
| defaultGETRequest_ :: BufferType a => URI -> Request a | ||||||||||||||||||||||||||||||||||
| formToRequest :: Form -> Request_String | ||||||||||||||||||||||||||||||||||
| uriDefaultTo :: URI -> URI -> URI | ||||||||||||||||||||||||||||||||||
| Returns a URI that is consistent with the first argument uri when read in the context of a second. If second argument is not sufficient context for determining a full URI then anarchy reins. | ||||||||||||||||||||||||||||||||||
| uriTrimHost :: URI -> URI | ||||||||||||||||||||||||||||||||||
| Produced by Haddock version 2.3.0 | ||||||||||||||||||||||||||||||||||