Zend\Http\Header\Allow
Allow Header
Synopsis
class Allow
implements
HeaderInterface
{
- // members
- protected array $methods;
- // methods
- public static Allow fromString()
- public string getFieldName()
- public string getFieldValue()
- public array getAllMethods()
- public array getAllowedMethods()
- public Allow allowMethods()
- public Allow disallowMethods()
- public Allow denyMethods()
- public bool isAllowedMethod()
- public string toString()
Hierarchy
Implements
Members
protected
- $methods
—
array
List of request methods true states that method is allowed, false - disallowed By default GET and POST are allowed
Methods
public
- allowMethods() — Allow methods or list of methods
- denyMethods() — Convenience alias for @see disallowMethods()
- disallowMethods() — Disallow methods or list of methods
- fromString() — Create Allow header from header line
- getAllMethods() — Get list of all defined methods
- getAllowedMethods() — Get list of allowed methods
- getFieldName() — Get header name
- getFieldValue() — Get comma-separated list of allowed methods
- isAllowedMethod() — Check whether method is allowed
- toString() — Return header as string