A protocol for rendering various types as content policy directives and their values.
A protocol for rendering various types as content policy directives and their values.
(as-directive-name x)
Returns string value for directive name.
Returns string value for directive name.
(write-directive-value x rf to)
Returns new value of to
created using reducing function (fn rf [to string])
.
The x
is responsible for the space before it.
Returns new value of `to` created using reducing function `(fn rf [to string])`. The `x` is responsible for the space before it.
(render-header-value policy)
Returns content policy header value for the policy
map.
See csp/header-value-fn
for the description of policy map.
Returns content policy header value for the `policy` map. See [[csp/header-value-fn]] for the description of policy map.
(sb-append)
(sb-append sb)
(sb-append sb s)
Reducing function which appends string to StringBuilder
.
Reducing function which appends string to `StringBuilder`.
(split-nonce s)
Splits header value on nonce. Returns vector of all parts.
Splits header value on nonce. Returns vector of all parts.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close