Fully Qualified Name: | Laminas\Http\Header\Allow |
Implements: | HeaderInterface |
Allow Header
Name | Description | Defined By |
---|---|---|
allowMethods() | Allow methods or list of methods | Allow |
denyMethods() | Convenience alias for @see disallowMethods() | Allow |
disallowMethods() | Disallow methods or list of methods | Allow |
fromString() | Create Allow header from header line | Allow |
getAllMethods() | Get list of all defined methods | Allow |
getAllowedMethods() | Get list of allowed methods | Allow |
getFieldName() | Get header name | Allow |
getFieldValue() | Get comma-separated list of allowed methods | Allow |
isAllowedMethod() | Check whether method is allowed | Allow |
toString() | Return header as string | Allow |
Allow methods or list of methods
Parameter Name | Type | Description |
---|---|---|
$allowedMethods | array|string |
Returns: $this
Convenience alias for @see disallowMethods()
Parameter Name | Type | Description |
---|---|---|
$disallowedMethods | array|string |
Returns: $this
Disallow methods or list of methods
Parameter Name | Type | Description |
---|---|---|
$disallowedMethods | array|string |
Returns: $this
Create Allow header from header line
Parameter Name | Type | Description |
---|---|---|
$headerLine | string |
Returns: static
Get list of all defined methods
Returns: array
Get list of allowed methods
Returns: array
Get header name
Returns: string
Get comma-separated list of allowed methods
Returns: string
Check whether method is allowed
Parameter Name | Type | Description |
---|---|---|
$method | string |
Returns: bool
Return header as string
Returns: string