WordPress at Your Fingertips
function is not described

SimplePie_HTTP_Parser::prepareHeaders() public WP 1.0

Prepare headers (take care of proxies headers)

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

No Hooks.

Return

String.

Usage

$result = SimplePie_HTTP_Parser::prepareHeaders( $headers, $count );
$headers(string) (required)
Raw headers
$count(int)
Redirection count.
Default: 1

Code of SimplePie_HTTP_Parser::prepareHeaders() WP 5.8.2

static public function prepareHeaders($headers, $count = 1)
{
	$data = explode("\r\n\r\n", $headers, $count);
	$data = array_pop($data);
	if (false !== stripos($data, "HTTP/1.0 200 Connection established\r\n\r\n")) {
		$data = str_ireplace("HTTP/1.0 200 Connection established\r\n\r\n", '', $data);
	}
	if (false !== stripos($data, "HTTP/1.1 200 Connection established\r\n\r\n")) {
		$data = str_ireplace("HTTP/1.1 200 Connection established\r\n\r\n", '', $data);
	}
	return $data;
}