Cookie
domain
(Fn [(Ref Cookie a)] (Ref (Maybe String) a))
gets the domain
property of a Cookie
.
expires
(Fn [(Ref Cookie a)] (Ref (Maybe Datetime) a))
gets the expires
property of a Cookie
.
init
(Fn [String, String, String, (Maybe Datetime), (Maybe String), Bool, Bool, SameSite] Cookie)
creates a Cookie
.
parse-many
(Fn [(Ref String a)] (Result (Array Cookie) String))
(parse-many s)
parses multiple cookies.
set-domain!
(Fn [(Ref Cookie a), (Maybe String)] ())
sets the domain
property of a Cookie
in place.
set-expires
(Fn [Cookie, (Maybe Datetime)] Cookie)
sets the expires
property of a Cookie
.
set-expires!
(Fn [(Ref Cookie a), (Maybe Datetime)] ())
sets the expires
property of a Cookie
in place.
set-httponly!
(Fn [(Ref Cookie a), Bool] ())
sets the httponly
property of a Cookie
in place.
set-samesite!
(Fn [(Ref Cookie a), SameSite] ())
sets the samesite
property of a Cookie
in place.
set-secure!
(Fn [(Ref Cookie a), Bool] ())
sets the secure
property of a Cookie
in place.
set-value!
(Fn [(Ref Cookie a), String] ())
sets the value
property of a Cookie
in place.
update-domain
(Fn [Cookie, (Ref (Fn [(Maybe String)] (Maybe String) a) b)] Cookie)
updates the domain
property of a Cookie
using a function f
.
update-expires
(Fn [Cookie, (Ref (Fn [(Maybe Datetime)] (Maybe Datetime) a) b)] Cookie)
updates the expires
property of a Cookie
using a function f
.
update-httponly
(Fn [Cookie, (Ref (Fn [Bool] Bool a) b)] Cookie)
updates the httponly
property of a Cookie
using a function f
.
update-name
(Fn [Cookie, (Ref (Fn [String] String a) b)] Cookie)
updates the name
property of a Cookie
using a function f
.
update-path
(Fn [Cookie, (Ref (Fn [String] String a) b)] Cookie)
updates the path
property of a Cookie
using a function f
.
update-samesite
(Fn [Cookie, (Ref (Fn [SameSite] SameSite a) b)] Cookie)
updates the samesite
property of a Cookie
using a function f
.
update-secure
(Fn [Cookie, (Ref (Fn [Bool] Bool a) b)] Cookie)
updates the secure
property of a Cookie
using a function f
.
update-value
(Fn [Cookie, (Ref (Fn [String] String a) b)] Cookie)
updates the value
property of a Cookie
using a function f
.