csp
Content Security Policy builder for web security.
Load with: use csp
Quick example
use csp
result = cspad("value", "./example", tru)
prn(result)
Functions
Functions
cspnw()
Performs the operation.
cspad(p, dir, vals)
Adds an item. Takes p, dir, vals.
cspdf(p, vals)
Performs the operation. Takes p, vals.
cspsc(p, vals)
Performs the operation. Takes p, vals.
cspst(p, vals)
Sets a value or starts a process. Takes p, vals.
cspim(p, vals)
Performs the operation. Takes p, vals.
cspfn(p, vals)
Finalises. Takes p, vals.
cspcn(p, vals)
Performs the operation. Takes p, vals.
cspfr(p, vals)
Creates from another format. Takes p, vals.
cspmd(p, vals)
Performs the operation. Takes p, vals.
cspob(p, vals)
Performs the operation. Takes p, vals.
cspba(p, vals)
Performs the operation. Takes p, vals.
cspfa(p, vals)
Performs the operation. Takes p, vals.
cspan(p, vals)
Performs the operation. Takes p, vals.
cspno(p)
Performs the operation. Takes p.
csphh(p)
Performs the operation. Takes p.
cspup(p)
Updates. Takes p.
cspbl(p)
Performs the operation. Takes p.
cspro(p)
Performs the operation. Takes p.
csprp(p, uri)
Performs the operation. Takes p, uri.
csrpt(p, uri)
Performs the operation. Takes p, uri.
cspsr(p)
Performs the operation. Takes p.
csphd(p)
Performs the operation. Takes p.
cspsl()
Performs the operation.
cspnn()
Performs the operation.
cspui()
Performs the operation.
cspue()
Performs the operation.
cspda()
Performs the operation.
cspbb()
Performs the operation.
These are the public-facing names you call with use csp:
csp.new()csp.add(p, d, v)csp.dflt(p, v)csp.scr(p, v)csp.sty(p, v)csp.img(p, v)csp.str(p)csp.hdr(p)
Notes
- Content Security Policy header generation.