SimplePie_HTTP_Parser::parse

Advertisement

Summery Summery

Parse the input data

Syntax Syntax

SimplePie_HTTP_Parser::parse()

Return Return

(bool) true on success, false on failure

Source Source

File: wp-includes/SimplePie/HTTP/Parser.php

	{
		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;
	}

	/**
	 * Check whether there is data beyond the pointer

Advertisement

Advertisement

Leave a Reply