WpOrg\Requests\Response
Headers::getIterator
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() Headers::getIterator code WP 7.0
public function getIterator() {
return new FilteredIterator($this->data, [$this, 'flatten']);
}