Cookie
is a simple cookie data type. You usually shouldn’t need to build the type yourself, instead you can parse it.
domain
(λ [(Ref Cookie a)] (Ref (Maybe String) a))
gets the domain property of a Cookie.
expires
(λ [(Ref Cookie a)] (Ref (Maybe Datetime) a))
gets the expires property of a Cookie.
init
(λ [String, String, String, (Maybe Datetime), (Maybe String), Bool, Bool, SameSite] Cookie)
creates a Cookie.
parse-many
(λ [(Ref String a)] (Result (Array Cookie) String))
(parse-many s)
parses multiple cookies.
same-site
(λ [(Ref Cookie a)] (Ref SameSite a))
gets the same-site property of a Cookie.
set-domain!
(λ [(Ref Cookie a), (Maybe String)] ())
sets the domain property of a Cookie in place.
set-expires
(λ [Cookie, (Maybe Datetime)] Cookie)
sets the expires property of a Cookie.
set-expires!
(λ [(Ref Cookie a), (Maybe Datetime)] ())
sets the expires property of a Cookie in place.
set-http-only!
(λ [(Ref Cookie a), Bool] ())
sets the http-only property of a Cookie in place.
set-same-site!
(λ [(Ref Cookie a), SameSite] ())
sets the same-site property of a Cookie in place.
set-secure!
(λ [(Ref Cookie a), Bool] ())
sets the secure property of a Cookie in place.
set-value!
(λ [(Ref Cookie a), String] ())
sets the value property of a Cookie in place.
update-domain
(λ [Cookie, (Ref (λ [(Maybe String)] (Maybe String) a) b)] Cookie)
updates the domain property of a Cookie using a function f.
update-expires
(λ [Cookie, (Ref (λ [(Maybe Datetime)] (Maybe Datetime) a) b)] Cookie)
updates the expires property of a Cookie using a function f.
update-http-only
(λ [Cookie, (Ref (λ [Bool] Bool a) b)] Cookie)
updates the http-only property of a Cookie using a function f.
update-name
(λ [Cookie, (Ref (λ [String] String a) b)] Cookie)
updates the name property of a Cookie using a function f.
update-path
(λ [Cookie, (Ref (λ [String] String a) b)] Cookie)
updates the path property of a Cookie using a function f.
update-same-site
(λ [Cookie, (Ref (λ [SameSite] SameSite a) b)] Cookie)
updates the same-site property of a Cookie using a function f.
update-secure
(λ [Cookie, (Ref (λ [Bool] Bool a) b)] Cookie)
updates the secure property of a Cookie using a function f.
update-value
(λ [Cookie, (Ref (λ [String] String a) b)] Cookie)
updates the value property of a Cookie using a function f.