HAppS-Server-0.9.2.1: Web related tools and services.ContentsIndex
HAppS.Server.Cookie
Synopsis
data Cookie = Cookie {
cookieVersion :: String
cookiePath :: String
cookieDomain :: String
cookieName :: String
cookieValue :: String
}
mkCookie :: String -> String -> Cookie
mkCookieHeader :: Seconds -> Cookie -> String
getCookies :: Monad m => ByteString -> m [Cookie]
getCookie :: Monad m => String -> ByteString -> m Cookie
Documentation
data Cookie
Constructors
Cookie
cookieVersion :: String
cookiePath :: String
cookieDomain :: String
cookieName :: String
cookieValue :: String
show/hide Instances
mkCookie :: String -> String -> Cookie
mkCookieHeader :: Seconds -> Cookie -> String
Set a Cookie in the Result. The values are escaped as per RFC 2109, but some browsers may have buggy support for cookies containing e.g. '"' or ' '.
getCookies :: Monad m => ByteString -> m [Cookie]
Get all cookies from the HTTP request. The cookies are ordered per RFC from the most specific to the least specific. Multiple cookies with the same name are allowed to exist.
getCookie :: Monad m => String -> ByteString -> m Cookie
Get the most specific cookie with the given name. Fails if there is no such cookie or if the browser did not escape cookies in a proper fashion. Browser support for escaping cookies properly is very diverse.
Produced by Haddock version 2.1.0