Class ContentSecurityPolicy

Summary

Fully Qualified Name: Zend\Http\Header\ContentSecurityPolicy
Implements: HeaderInterface

Description

Content Security Policy 1.0 Header

Methods

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

Method Details

fromString()

Create Content Security Policy header from a given header line

Parameter Name Type Description
$headerLine string The

Returns: self

getDirectives()

Get the list of defined directives

Returns: array

getFieldName()

Get the header name

Returns: string

getFieldValue()

Get the header value

Returns: string

setDirective()

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

toString()

Return the header as a string

Returns: string

Top