fromString()
getDirectives()
getFieldName()
getFieldValue()
setDirective()
toString()
$directives
$validDirectiveNames
Content Security Policy 1.0 Header
link | http://www.w3.org/TR/CSP/ |
---|
fromString(string $headerLine) : \Zend\Http\Header\self
string
The header line to parse.
\Zend\Http\Header\Exception\InvalidArgumentException |
If the name field in the given header line does not match. |
---|
\Zend\Http\Header\self
getDirectives() : array
array
getFieldName() : string
string
getFieldValue() : string
string
setDirective(string $name, array $sources) : \Zend\Http\Header\self
Reverses http://www.w3.org/TR/CSP/#parsing-1
string
The directive name.
array
The source list.
\Zend\Http\Header\Exception\InvalidArgumentException |
If the name is not a valid directive name. |
---|
\Zend\Http\Header\self
toString() : string
Returns in form of "NAME: VALUE"
string
$directives : array
$validDirectiveNames : array