(contains-key? k)
is the key present in the cookies
is the key present in the cookies
(contains-val? v)
is the value present in the cookies (as string)
is the value present in the cookies (as string)
(get k & [default])
gets the value at the key (as edn), optional default when value is not found
gets the value at the key (as edn), optional default when value is not found
(get-raw k & [default])
gets the value at the key (as string), optional default when value is not found
gets the value at the key (as string), optional default when value is not found
(keys)
returns all the keys for the cookies
returns all the keys for the cookies
(raw-vals)
returns cookie values (as strings)
returns cookie values (as strings)
(remove! k)
(remove! k path domain)
removes a cookie, optionally for a specific path and/or domain
removes a cookie, optionally for a specific path and/or domain
(set! k content & [{:keys [max-age path domain secure? raw?]} :as opts])
sets a cookie, the max-age for session cookie following optional parameters may be passed in as a map: :max-age - defaults to -1 :path - path of the cookie, defaults to the full request path :domain - domain of the cookie, when null the browser will use the full request host name :secure? - boolean specifying whether the cookie should only be sent over a secure channel :raw? - boolean specifying whether content should be stored raw, or as EDN
sets a cookie, the max-age for session cookie following optional parameters may be passed in as a map: :max-age - defaults to -1 :path - path of the cookie, defaults to the full request path :domain - domain of the cookie, when null the browser will use the full request host name :secure? - boolean specifying whether the cookie should only be sent over a secure channel :raw? - boolean specifying whether content should be stored raw, or as EDN
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close