SRC="haddock.js" TYPE="text/javascript">

Network.Browser

HTTP-300000ContentsIndex
Network.Browser
Portabilitynon-portable (not tested)
Stabilityexperimental
Maintainerbjorn@bringert.net
Description
An HTTP/1.1 compatible wrapper for the HTTP module.
Synopsis
data BrowserState
data BrowserAction a
data Cookie
data Form = Form RequestMethod URI [FormVar]
data Proxy
= NoProxy
| Proxy String (Maybe Authority)
browse :: BrowserAction a -> IO a
request :: Request -> BrowserAction (URI, Response)
setAllowRedirects :: Bool -> BrowserAction ()
getAllowRedirects :: BrowserAction Bool
data Authority
= AuthBasic {
auRealm :: String
auUsername :: String
auPassword :: String
auSite :: URI
}
| AuthDigest {
auRealm :: String
auUsername :: String
auPassword :: String
auNonce :: String
auAlgorithm :: (Maybe Algorithm)
auDomain :: [URI]
auOpaque :: (Maybe String)
auQop :: [Qop]
}
getAuthorities :: BrowserAction [Authority]
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 ()
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
defaultGETRequest :: URI -> Request
formToRequest :: Form -> Request
uriDefaultTo :: URI -> URI -> URI
uriTrimHost :: URI -> URI
Documentation
data BrowserState
show/hide Instances
data BrowserAction a
show/hide Instances
data Cookie
show/hide Instances
data Form
Constructors
Form RequestMethod URI [FormVar]
data Proxy
Constructors
NoProxy
Proxy String (Maybe Authority)
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
Constructors
AuthBasic
auRealm :: String
auUsername :: String
auPassword :: String
auSite :: URI
AuthDigest
auRealm :: String
auUsername :: String
auPassword :: String
auNonce :: String
auAlgorithm :: (Maybe Algorithm)
auDomain :: [URI]
auOpaque :: (Maybe String)
auQop :: [Qop]
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

AltStyle によって変換されたページ (->オリジナル) /