Liking cljdoc? Tell your friends :D

reagent.cookies


clear!cljs

(clear!)

removes all cookies

removes all cookies
sourceraw docstring

contains-key?cljs

(contains-key? k)

is the key present in the cookies

is the key present in the cookies
sourceraw docstring

contains-val?cljs

(contains-val? v)

is the value present in the cookies (as string)

is the value present in the cookies (as string)
sourceraw docstring

countcljs

(count)

returns the number of cookies

returns the number of cookies
sourceraw docstring

empty?cljs

(empty?)

true if no cookies are set

true if no cookies are set
sourceraw docstring

getcljs

(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
sourceraw docstring

get-rawcljs

(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
sourceraw docstring

keyscljs

(keys)

returns all the keys for the cookies

returns all the keys for the cookies
sourceraw docstring

raw-valscljs

(raw-vals)

returns cookie values (as strings)

returns cookie values (as strings)
sourceraw docstring

remove!cljs

(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
sourceraw docstring

set!cljs

(set! k
      content
      &
      [{:keys [max-age path domain secure? raw? same-site] :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 :same-site - A keyword of either :strict, :lax, or :none (defaults to :none). Only supported when supports-same-site? is true

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
:same-site - A keyword of either :strict, :lax, or :none (defaults to :none). Only supported when `supports-same-site?` is true
sourceraw docstring

supports-same-site?cljs

(supports-same-site?)

True if the the underlying version of goog.net.cookies supports the same-site attribute when setting cookies

True if the the underlying version of `goog.net.cookies` supports the same-site attribute
when setting cookies
sourceraw docstring

valscljs

(vals)

returns cookie values (as edn)

returns cookie values (as edn)
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close