| Fully Qualified Name: | Zend\Http\Header\ContentSecurityPolicy |
| Implements: | HeaderInterface |
Content Security Policy 1.0 Header
| Name | Description | Defined By |
|---|---|---|
| fromString() | Create Content Security Policy header from a given header line | ContentSecurityPolicy |
| getDirectives() | Get the list of defined directives | ContentSecurityPolicy |
| getFieldName() | Get the header name | ContentSecurityPolicy |
| getFieldValue() | Get the header value | ContentSecurityPolicy |
| setDirective() | Sets the directive to consist of the source list | ContentSecurityPolicy |
| toString() | Return the header as a string | ContentSecurityPolicy |
Create Content Security Policy header from a given header line
| Parameter Name | Type | Description |
|---|---|---|
| $headerLine | string | The |
Returns: self
Get the list of defined directives
Returns: array
Get the header name
Returns: string
Get the header value
Returns: string
Sets the directive to consist of the source list
Reverses http://www.w3.org/TR/CSP/#parsing-1
| Parameter Name | Type | Description |
|---|---|---|
| $name | string | The |
| $sources | array | The |
Returns: self
Return the header as a string
Returns: string