Module

Bucketchain.Header.Cookie

#Cookie

type Cookie = { domain :: Maybe String, httpOnly :: Boolean, key :: String, maxAge :: Maybe Seconds, path :: Maybe String, sameSite :: Maybe SameSite, secure :: Boolean, value :: String }

The cookie payload.

#SameSite

data SameSite

The SameSite directive.

Constructors

Instances

#addCookie

addCookie :: Http -> Cookie -> Effect Unit

Add a cookie.

#getCookies

getCookies :: Http -> Object String

Get cookies.

Modules