[ Index ]

PHP Cross Reference of WordPress




/wp-includes/Requests/Response/ -> Headers.php (summary)

Case-insensitive dictionary, suitable for HTTP headers

File Size: 98 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Requests_Response_Headers:: (5 methods):

Class: Requests_Response_Headers  - X-Ref

Case-insensitive dictionary, suitable for HTTP headers

offsetGet($key)   X-Ref
Get the given header

Unlike {@see self::getValues()}, this returns a string. If there are
multiple values, it concatenates them with a comma as per RFC2616.

Avoid using this where commas may be used unquoted in values, such as
Set-Cookie headers.

param: string $key
return: string|null Header value

offsetSet($key, $value)   X-Ref
Set the given item

param: string $key Item name
param: string $value Item value

getValues($key)   X-Ref
Get all values for a given header

param: string $key
return: array|null Header values

flatten($value)   X-Ref
Flattens a value into a string

Converts an array into a string by imploding values with a comma, as per
RFC2616's rules for folding headers.

param: string|array $value Value to flatten
return: string Flattened value

getIterator()   X-Ref
Get an iterator for the data

Converts the internal
return: ArrayIterator

Generated: Thu Oct 28 01:00:03 2021 Cross-referenced by PHPXref 0.7.1