Spock-0.10.0.0: Another Haskell web framework for rapid development

Safe HaskellNone
LanguageHaskell98

Web.Spock.Internal.Cookies

Synopsis

Documentation

data CookieSettings Source

Cookie settings

Constructors

CookieSettings 

Fields

cs_EOL :: CookieEOL

cookie expiration setting, see CookieEOL

cs_path :: ByteString

a path for the cookie

cs_domain :: Maybe ByteString

a domain for the cookie. Nothing means no domain is set

cs_HTTPOnly :: Bool

whether the cookie should be set as HttpOnly

cs_secure :: Bool

whether the cookie should be marked secure (sent over HTTPS only)

defaultCookieSettings :: CookieSettings Source

Default cookie settings, equals

CookieSettings
  { cs_EOL      = CookieValidForSession
  , cs_HTTPOnly = False
  , cs_secure   = False
  , cs_domain   = Nothing
  , cs_path     = "/"
  }

data CookieEOL Source

Setting cookie expiration

Constructors

CookieValidUntil UTCTime

a point in time in UTC until the cookie is valid

CookieValidFor NominalDiffTime

a period (in seconds) for which the cookie is valid

CookieValidForSession

the cookie expires with the browser session