Module

Biscotti.Cookie.Types

Package
purescript-biscotti-cookie
Repository
drewolson/purescript-biscotti-cookie

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

#Cookie Source

newtype Cookie

The Cookie type

Constructors

Instances

#SameSite Source

data SameSite

Type representing a Cookie's optional SameSite attribute.

Constructors

Instances

#expire Source

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

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

#new Source

new :: String -> String -> Cookie

The constructor for Cookie

#setHttpOnly Source

#setMaxAge Source