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.
host-only
(Fn [(Ref JarCookie a)] (Ref Bool a))
gets the host-only property of a JarCookie.
set-cookie!
(Fn [(Ref JarCookie a), Cookie] ())
sets the cookie property of a JarCookie in place.
set-host-only
(Fn [JarCookie, Bool] JarCookie)
sets the host-only property of a JarCookie.
set-host-only!
(Fn [(Ref JarCookie a), Bool] ())
sets the host-only property of a JarCookie in place.
update-cookie
(Fn [JarCookie, (Ref (Fn [Cookie] Cookie a) b)] JarCookie)
updates the cookie property of a JarCookie using a function f.
update-host-only
(Fn [JarCookie, (Ref (Fn [Bool] Bool a) b)] JarCookie)
updates the host-only property of a JarCookie using a function f.