| ||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||
Description | ||||||||||||||||||||||||||||||||||
An HTTP/1.1 compatible wrapper for the HTTP module. | ||||||||||||||||||||||||||||||||||
Synopsis | ||||||||||||||||||||||||||||||||||
Documentation | ||||||||||||||||||||||||||||||||||
data BrowserState | ||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||
data BrowserAction a | ||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||
data Cookie | ||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||
data Form | ||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||
data Proxy | ||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||
browse :: BrowserAction a -> IO a | ||||||||||||||||||||||||||||||||||
Apply a browser action to a state. | ||||||||||||||||||||||||||||||||||
request :: Request -> BrowserAction (URI, Response) | ||||||||||||||||||||||||||||||||||
setAllowRedirects :: Bool -> BrowserAction () | ||||||||||||||||||||||||||||||||||
getAllowRedirects :: BrowserAction Bool | ||||||||||||||||||||||||||||||||||
data Authority | ||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||
getAuthorities :: BrowserAction [Authority] | ||||||||||||||||||||||||||||||||||
Interacting with browser state: | ||||||||||||||||||||||||||||||||||
setAuthorities :: [Authority] -> BrowserAction () | ||||||||||||||||||||||||||||||||||
addAuthority :: Authority -> BrowserAction () | ||||||||||||||||||||||||||||||||||
getAuthorityGen :: BrowserAction (URI -> String -> IO (Maybe (String, String))) | ||||||||||||||||||||||||||||||||||
setAuthorityGen :: (URI -> String -> IO (Maybe (String, String))) -> BrowserAction () | ||||||||||||||||||||||||||||||||||
setAllowBasicAuth :: Bool -> BrowserAction () | ||||||||||||||||||||||||||||||||||
setCookieFilter :: (URI -> Cookie -> IO Bool) -> BrowserAction () | ||||||||||||||||||||||||||||||||||
defaultCookieFilter :: URI -> Cookie -> IO Bool | ||||||||||||||||||||||||||||||||||
userCookieFilter :: URI -> Cookie -> IO Bool | ||||||||||||||||||||||||||||||||||
getCookies :: BrowserAction [Cookie] | ||||||||||||||||||||||||||||||||||
setCookies :: [Cookie] -> BrowserAction () | ||||||||||||||||||||||||||||||||||
addCookie :: Cookie -> BrowserAction () | ||||||||||||||||||||||||||||||||||
Adds a cookie to the browser state, removing duplicates. | ||||||||||||||||||||||||||||||||||
setErrHandler :: (String -> IO ()) -> BrowserAction () | ||||||||||||||||||||||||||||||||||
setOutHandler :: (String -> IO ()) -> BrowserAction () | ||||||||||||||||||||||||||||||||||
setProxy :: Proxy -> BrowserAction () | ||||||||||||||||||||||||||||||||||
setDebugLog :: Maybe String -> BrowserAction () | ||||||||||||||||||||||||||||||||||
out :: String -> BrowserAction () | ||||||||||||||||||||||||||||||||||
err :: String -> BrowserAction () | ||||||||||||||||||||||||||||||||||
ioAction :: IO a -> BrowserAction a | ||||||||||||||||||||||||||||||||||
Do an io action | ||||||||||||||||||||||||||||||||||
defaultGETRequest :: URI -> Request | ||||||||||||||||||||||||||||||||||
formToRequest :: Form -> Request | ||||||||||||||||||||||||||||||||||
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 0.8 |