Cookie

copy

instantiate

(Fn [(Ref Cookie a)] Cookie)

copies a Cookie.

delete

instantiate

(Fn [Cookie] ())

deletes a Cookie. Should usually not be called manually.

domain

instantiate

(Fn [(Ref Cookie a)] (Ref (Maybe String) a))

gets the domain property of a Cookie.

expired?

defn

(Fn [(Ref Cookie a)] Bool)

                        (expired? c)
                    

checks if a cookie is expired now.

expires

instantiate

(Fn [(Ref Cookie a)] (Ref (Maybe Datetime) a))

gets the expires property of a Cookie.

httponly

instantiate

(Fn [(Ref Cookie a)] (Ref Bool a))

gets the httponly property of a Cookie.

init

instantiate

(Fn [String, String, String, (Maybe Datetime), (Maybe String), Bool, Bool, SameSite] Cookie)

creates a Cookie.

kv

defn

(Fn [(Ref Cookie a)] String)

                        (kv c)
                    

makes a name=value pair from a cookie.

name

instantiate

(Fn [(Ref Cookie a)] (Ref String a))

gets the name property of a Cookie.

parse

defn

(Fn [(Ref String a)] (Result Cookie String))

                        (parse s)
                    

parses a cookie.

parse-many

defn

(Fn [(Ref String a)] (Result (Array Cookie) String))

                        (parse-many s)
                    

parses multiple cookies.

parse-set

defn

(Fn [(Ref String a)] (Result Cookie String))

                        (parse-set s)
                    

parses a Set-Cookie form.

path

instantiate

(Fn [(Ref Cookie a)] (Ref String a))

gets the path property of a Cookie.

prn

instantiate

(Fn [(Ref Cookie a)] String)

converts a Cookie to a string.

samesite

instantiate

(Fn [(Ref Cookie a)] (Ref SameSite a))

gets the samesite property of a Cookie.

secure

instantiate

(Fn [(Ref Cookie a)] (Ref Bool a))

gets the secure property of a Cookie.

set

defn

(Fn [(Ref Cookie a)] String)

                        (set c)
                    

makes a proper set cookie string from a cookie.

set-domain

instantiate

(Fn [Cookie, (Maybe String)] Cookie)

sets the domain property of a Cookie.

set-domain!

instantiate

(Fn [(Ref Cookie a), (Maybe String)] ())

sets the domain property of a Cookie in place.

set-expires

instantiate

(Fn [Cookie, (Maybe Datetime)] Cookie)

sets the expires property of a Cookie.

set-expires!

instantiate

(Fn [(Ref Cookie a), (Maybe Datetime)] ())

sets the expires property of a Cookie in place.

set-httponly

instantiate

(Fn [Cookie, Bool] Cookie)

sets the httponly property of a Cookie.

set-httponly!

instantiate

(Fn [(Ref Cookie a), Bool] ())

sets the httponly property of a Cookie in place.

set-name

instantiate

(Fn [Cookie, String] Cookie)

sets the name property of a Cookie.

set-name!

instantiate

(Fn [(Ref Cookie a), String] ())

sets the name property of a Cookie in place.

set-path

instantiate

(Fn [Cookie, String] Cookie)

sets the path property of a Cookie.

set-path!

instantiate

(Fn [(Ref Cookie a), String] ())

sets the path property of a Cookie in place.

set-samesite

instantiate

(Fn [Cookie, SameSite] Cookie)

sets the samesite property of a Cookie.

set-samesite!

instantiate

(Fn [(Ref Cookie a), SameSite] ())

sets the samesite property of a Cookie in place.

set-secure

instantiate

(Fn [Cookie, Bool] Cookie)

sets the secure property of a Cookie.

set-secure!

instantiate

(Fn [(Ref Cookie a), Bool] ())

sets the secure property of a Cookie in place.

set-value

instantiate

(Fn [Cookie, String] Cookie)

sets the value property of a Cookie.

set-value!

instantiate

(Fn [(Ref Cookie a), String] ())

sets the value property of a Cookie in place.

str

instantiate

(Fn [(Ref Cookie a)] String)

converts a Cookie to a string.

update-domain

instantiate

(Fn [Cookie, (Ref (Fn [(Maybe String)] (Maybe String) a) b)] Cookie)

updates the domain property of a Cookie using a function f.

update-expires

instantiate

(Fn [Cookie, (Ref (Fn [(Maybe Datetime)] (Maybe Datetime) a) b)] Cookie)

updates the expires property of a Cookie using a function f.

update-httponly

instantiate

(Fn [Cookie, (Ref (Fn [Bool] Bool a) b)] Cookie)

updates the httponly property of a Cookie using a function f.

update-name

instantiate

(Fn [Cookie, (Ref (Fn [String] String a) b)] Cookie)

updates the name property of a Cookie using a function f.

update-path

instantiate

(Fn [Cookie, (Ref (Fn [String] String a) b)] Cookie)

updates the path property of a Cookie using a function f.

update-samesite

instantiate

(Fn [Cookie, (Ref (Fn [SameSite] SameSite a) b)] Cookie)

updates the samesite property of a Cookie using a function f.

update-secure

instantiate

(Fn [Cookie, (Ref (Fn [Bool] Bool a) b)] Cookie)

updates the secure property of a Cookie using a function f.

update-value

instantiate

(Fn [Cookie, (Ref (Fn [String] String a) b)] Cookie)

updates the value property of a Cookie using a function f.

value

instantiate

(Fn [(Ref Cookie a)] (Ref String a))

gets the value property of a Cookie.