Headers::getIterator()

Get an iterator for the data


Description

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


Return

(ArrayIterator)


Source

File: wp-includes/Requests/src/Response/Headers.php

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