Allow Header

link http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.7

 Methods

Allow methods or list of methods

allowMethods(array | string $allowedMethods) : \Zend\Http\Header\Allow

Parameters

$allowedMethods

arraystring

Returns

Convenience alias for @see disallowMethods()

denyMethods(array | string $disallowedMethods) : \Zend\Http\Header\Allow

Parameters

$disallowedMethods

arraystring

Returns

Disallow methods or list of methods

disallowMethods(array | string $disallowedMethods) : \Zend\Http\Header\Allow

Parameters

$disallowedMethods

arraystring

Returns

Create Allow header from header line

fromString(string $headerLine) : \Zend\Http\Header\Allow

Parameters

$headerLine

string

Exceptions

\Zend\Http\Header\Exception\InvalidArgumentException

Returns

Get list of all defined methods

getAllMethods() : array

Returns

array

Get list of allowed methods

getAllowedMethods() : array

Returns

array

Get header name

getFieldName() : string

Returns

string

Get comma-separated list of allowed methods

getFieldValue() : string

Returns

string

Check whether method is allowed

isAllowedMethod(string $method) : bool

Parameters

$method

string

Returns

bool

Return header as string

toString() : string

Returns in form of "NAME: VALUE"

Returns

string

 Properties

 

List of request methods true states that method is allowed, false - disallowed By default GET and POST are allowed

$methods : array