Fully Qualified Name: | Laminas\Http\Header\ContentSecurityPolicy |
Implements: | MultipleHeaderInterface |
Content Security Policy Level 3 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 |
toStringMultipleHeaders() | ContentSecurityPolicy |
Create Content Security Policy header from a given header line
Parameter Name | Type | Description |
---|---|---|
$headerLine | string | The |
Returns: static
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: $this
Return the header as a string
Returns: string
Parameter Name | Type | Description |
---|---|---|
$headers |
Returns: void