Fully Qualified Name: | Zend\Http\Header\HeaderValue |
Name | Description | Defined By |
---|---|---|
assertValid() | Assert a header value is valid. | HeaderValue |
filter() | Filter a header value | HeaderValue |
isValid() | Validate a header value. | HeaderValue |
Assert a header value is valid.
Parameter Name | Type | Description |
---|---|---|
$value | string |
Returns: void
Filter a header value
Ensures CRLF header injection vectors are filtered.
Per RFC 7230, only VISIBLE ASCII characters, spaces, and horizontal tabs are allowed in values; only one whitespace character is allowed between visible characters.
Parameter Name | Type | Description |
---|---|---|
$value | string |
Returns: string
Validate a header value.
Per RFC 7230, only VISIBLE ASCII characters, spaces, and horizontal tabs are allowed in values; only one whitespace character is allowed between visible characters.
Parameter Name | Type | Description |
---|---|---|
$value | string |
Returns: bool