Fully Qualified Name: | Laminas\Http\Header\FeaturePolicy |
Implements: | HeaderInterface |
Feature Policy (based on Editor’s Draft, 28 November 2019)
Name | Description | Defined By |
---|---|---|
fromString() | Create Feature Policy header from a given header line | FeaturePolicy |
getDirectives() | Get the list of defined directives | FeaturePolicy |
getFieldName() | Get the header name | FeaturePolicy |
getFieldValue() | Get the header value | FeaturePolicy |
setDirective() | Sets the directive to consist of the source list | FeaturePolicy |
toString() | Return the header as a string | FeaturePolicy |
Create Feature 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
Parameter Name | Type | Description |
---|---|---|
$name | string | The |
$sources | string[] | The |
Returns: $this
Return the header as a string
Returns: string