Wheb-0.3.1.0: The frictionless WAI Framework

Safe HaskellNone
LanguageHaskell2010

Web.Wheb.Cookie

Synopsis

Documentation

setCookie :: Monad m => Text -> Text -> WhebT g s m () Source

setCookie' :: Monad m => Text -> Text -> SetCookie -> WhebT g s m () Source

Set a cookie. Looks up setting "enable-secure-cookies" to control turning HTTPS only cookies on. This should be enabled on production environments.

getCookie :: Monad m => Text -> WhebT g s m (Maybe Text) Source

getCookies :: Monad m => WhebT g s m CookiesText Source

removeCookie :: Monad m => Text -> WhebT g s m () Source