salvia-1.0.0: Modular web application framework.




hSetCookie :: HttpM Response m => Cookies -> m ()Source

Set the `Set-Cookie` HTTP response header with the specified Cookies.

hCookie :: HttpM Request m => m (Maybe Cookies)Source

Try to get the cookies from the HTTP cookie request header.

hDelCookie :: HttpM Response m => String -> m ()Source

Delete one cookie by removing it from the `Set-Cookie' header.

hNewCookie :: (ServerM m, ServerAddressM m, FormatTime t) => t -> Bool -> m CookieSource

Convenient method for creating cookies that expire in the near future and are bound to the domain and port this server runs on. The path will be locked to root. If the second argument is set, the cookie will be valid for all subdomains.