HTTP-4000.0.9: A library for client-side HTTPSource codeContentsIndex
Network.HTTP.Cookie
Portabilitynon-portable (not tested)
Stabilityexperimental
MaintainerSigbjorn Finne <sigbjorn.finne@gmail.com>
Description
This module provides the data types and functions for working with HTTP cookies. Right now, it contains mostly functionality needed by Network.Browser.
Synopsis
data Cookie = MkCookie {
ckDomain :: String
ckName :: String
ckValue :: String
ckPath :: Maybe String
ckComment :: Maybe String
ckVersion :: Maybe String
}
cookieMatch :: (String, String) -> Cookie -> Bool
cookieToHeader :: Cookie -> Header
processCookieHeaders :: String -> [Header] -> ([String], [Cookie])
Documentation
data Cookie Source
Cookie is the Haskell representation of HTTP cookie values. See its relevant specs for authoritative details.
Constructors
MkCookie
ckDomain :: String
ckName :: String
ckValue :: String
ckPath :: Maybe String
ckComment :: Maybe String
ckVersion :: Maybe String
cookieMatch :: (String, String) -> Cookie -> BoolSource
cookieMatch (domain,path) ck performs the standard cookie match wrt the given domain and path.
cookieToHeader :: Cookie -> HeaderSource
cookieToHeader ck serialises a Cookie to an HTTP request header.
processCookieHeaders :: String -> [Header] -> ([String], [Cookie])Source
processCookieHeaders dom hdrs
Produced by Haddock version 2.6.0