WpOrg\Requests\Response

Headers::getIteratorpublicWP 1.0

Get an iterator for the data

Converts the internally stored values to a comma-separated string if there is more than one value for a key.

Method of the class: Headers{}

No Hooks.

Returns

\ArrayIterator.

Usage

$Headers = new Headers();
$Headers->getIterator();

Headers::getIterator() code WP 7.0

public function getIterator() {
	return new FilteredIterator($this->data, [$this, 'flatten']);
}