Zend\Http\Header\ContentSecurityPolicy
Content Security Policy 1.0 Header
Synopsis
class ContentSecurityPolicy
implements
HeaderInterface
{
- // members
- protected array $validDirectiveNames;
- protected array $directives;
- // methods
- public array getDirectives()
- public self setDirective()
- public static self fromString()
- public string getFieldName()
- public string getFieldValue()
- public string toString()
Hierarchy
Implements
Members
protected
- $directives
—
array
The directives defined for this policy - $validDirectiveNames
—
array
Valid directive names
Methods
public
- fromString() — Create Content Security Policy header from a given header line
- getDirectives() — Get the list of defined directives
- getFieldName() — Get the header name
- getFieldValue() — Get the header value
- setDirective() — Sets the directive to consist of the source list
- toString() — Return the header as a string