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
Returns
Get list of all defined methods
getAllMethods() : array
Get list of allowed methods
getAllowedMethods() : array
Get header name
getFieldName() : string
Get comma-separated list of allowed methods
getFieldValue() : string
Check whether method is allowed
isAllowedMethod(string $method) : bool
Parameters
$method
string
Returns
bool
Return header as string
toString() : string
Properties
List of request methods
true states that method is allowed, false - disallowed
By default GET and POST are allowed
$methods : array