WordPress at Your Fingertips
function is not described

SimplePie_HTTP_Parser::parse() public WP 1.0

Parse the input data

{} It's a method of the class: SimplePie_HTTP_Parser{}

No Hooks.

Return

true|false. true on success, false on failure

Usage

$SimplePie_HTTP_Parser = new SimplePie_HTTP_Parser();
$SimplePie_HTTP_Parser->parse();

Code of SimplePie_HTTP_Parser::parse() WP 5.8.2

public function parse()
{
	while ($this->state && $this->state !== 'emit' && $this->has_data())
	{
		$state = $this->state;
		$this->$state();
	}
	$this->data = '';
	if ($this->state === 'emit' || $this->state === 'body')
	{
		return true;
	}

	$this->http_version = '';
	$this->status_code = '';
	$this->reason = '';
	$this->headers = array();
	$this->body = '';
	return false;
}