Copyright | (c) digitally induced GmbH 2022 |
---|---|
Safe Haskell | None |
Synopsis
- setCookie :: (?context :: ControllerContext) => SetCookie -> IO ()
Documentation
setCookie :: (?context :: ControllerContext) => SetCookie -> IO () Source #
Sets a Set-Cookie
header
import Web.Cookie action MyAction = do setCookie defaultSetCookie { setCookieName = "exampleCookie" , setCookieValue = "exampleValue" }