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.
Return
\ArrayIterator
.
Usage
$Headers = new Headers(); $Headers->getIterator();
Headers::getIterator() Headers::getIterator code WP 6.6.2
public function getIterator() { return new FilteredIterator($this->data, [$this, 'flatten']); }