Safe Haskell | None |
---|
- cond :: (a -> Bool) -> (a -> b) -> (a -> b) -> a -> b
- cookie :: (Strategy w, Query a) => ByteString -> Proxy (w a) -> Apiary (SNext w as a) b -> Apiary as b
- cookie' :: Request -> [(ByteString, ByteString)]
- deleteCookie :: ByteString -> Action ()
- setCookie :: SetCookie -> Action ()
Documentation
cookie :: (Strategy w, Query a) => ByteString -> Proxy (w a) -> Apiary (SNext w as a) b -> Apiary as bSource
cookie filter. since 0.5.1.0.
can use like query
function.
example:
cookie foo (pFirst pInt) -- get first Int parameter from foo. cookie bar (pOption pDouble) -- get first Double parameter from bar, allows no cookie. cookie baz (pMany (pMaybe pString)) -- get zero or more baz cookies. allows cookie decrypt failure. cookie baz (Proxy :: Proxy (LimitSome [int|100|] ByteString)) -- get raw cookies up to 100 entries.
cookie' :: Request -> [(ByteString, ByteString)]Source
deleteCookie :: ByteString -> Action ()Source
delete cookie. since 0.6.1.0.