Module

Biscotti.Cookie.Types

This module contains the Cookie type and functions for operating on data within it.

#Cookie

newtype Cookie

The Cookie type

Instances

#SameSite

data SameSite

Type representing a Cookie's optional SameSite attribute.

Constructors

Instances

#expire

expire :: Cookie -> Effect (Either String Cookie)

Expire an existing Cookie. This sets the Expires attribute of the cookie to yesterday's date.

#getDomain

#getExpires

#getHttpOnly

#getMaxAge

#getName

#getPath

#getSameSite

#getSecure

#getValue

#new

new :: String -> String -> Cookie

The constructor for Cookie

#setDomain

#setExpires

#setHttpOnly

#setMaxAge

#setPath

#setSameSite

#setSecure

Modules