Safe Haskell | None |
---|---|
Language | Haskell2010 |
- setCookie :: Monad m => SetCookie -> ActionT exts prms m ()
- deleteCookie :: Monad m => ByteString -> ActionT exts prms m ()
- getCookies :: Monad m => ActionT exts prms m [(ByteString, ByteString)]
- cookie :: (Strategy w, Monad actM, k </ prms, KnownSymbol k) => proxy k -> w ByteString -> Filter exts actM m prms (SNext w k ByteString prms)
- cookie' :: Request -> [(ByteString, ByteString)]
- module Web.Cookie
setter
deleteCookie :: Monad m => ByteString -> ActionT exts prms m () Source #
delete cookie. since 0.6.1.0.
getter
getCookies :: Monad m => ActionT exts prms m [(ByteString, ByteString)] Source #
filter
cookie :: (Strategy w, Monad actM, k </ prms, KnownSymbol k) => proxy k -> w ByteString -> Filter exts actM m prms (SNext w k ByteString prms) Source #
cookie filter. since 0.5.1.0.
can use like query
function.
example:
cookie [key|foo|] (pFirst pInt) -- get first Int parameter from foo. cookie [key|bar|] (pOption pDouble) -- get first Double parameter from bar, allows no cookie. cookie [key|baz|] (pMany (pMaybe pString)) -- get zero or more baz cookies. allows cookie decrypt failure. cookie [key|baz|] (Proxy :: Proxy (LimitSome [int|100|] ByteString)) -- get raw cookies up to 100 entries.
cookie' :: Request -> [(ByteString, ByteString)] Source #
Reexport
SetCookie(..)
module Web.Cookie