JarCookie

is a stored cookie together with RFC 6265 §5.3’s host-only-flag, which is set when the cookie arrived without a Domain attribute and may therefore only go back to the host that set it.

instantiate

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

gets the cookie property of a JarCookie.

copy

instantiate

(Fn [(Ref JarCookie a)] JarCookie)

copies a JarCookie.

delete

instantiate

(Fn [JarCookie] ())

deletes a JarCookie. Should usually not be called manually.

host-only

instantiate

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

gets the host-only property of a JarCookie.

init

instantiate

(Fn [Cookie, Bool] JarCookie)

creates a JarCookie.

prn

instantiate

(Fn [(Ref JarCookie a)] String)

converts a JarCookie to a string.

instantiate

(Fn [JarCookie, Cookie] JarCookie)

sets the cookie property of a JarCookie.

set-cookie!

instantiate

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

sets the cookie property of a JarCookie in place.

set-host-only

instantiate

(Fn [JarCookie, Bool] JarCookie)

sets the host-only property of a JarCookie.

set-host-only!

instantiate

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

sets the host-only property of a JarCookie in place.

str

instantiate

(Fn [(Ref JarCookie a)] String)

converts a JarCookie to a string.

instantiate

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

updates the cookie property of a JarCookie using a function f.

update-host-only

instantiate

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

updates the host-only property of a JarCookie using a function f.