Liking cljdoc? Tell your friends :D

strojure.web-security.csp-impl


PolicyRendercljprotocol

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-nameclj

(as-directive-name x)

Returns string value for directive name.

Returns string value for directive name.

write-directive-valueclj

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

render-header-valueclj

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

sb-appendclj

(sb-append)
(sb-append sb)
(sb-append sb s)

Reducing function which appends string to StringBuilder.

Reducing function which appends string to `StringBuilder`.
sourceraw docstring

split-nonceclj

(split-nonce s)

Splits header value on nonce. Returns vector of all parts.

Splits header value on nonce. Returns vector of all parts.
sourceraw docstring

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

× close