Requests_Response_Headers::getIterator() WordPress Method

The Requests_Response_Headers::getIterator() function is used to get an iterator for the headers in a Requests_Response object. This function is useful for looping through all the headers in a response.

Requests_Response_Headers::getIterator() #

Get an iterator for the data


Description

Converts the internal


Top ↑

Return

(ArrayIterator)


Top ↑

Source

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

	public function getIterator() {
		return new Requests_Utility_FilteredIterator($this->data, array($this, 'flatten'));
	}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.