WordPress at a glance
function is not described

WP_Http::processResponse() public WP 2.7.0

Parses the responses and splits the parts into headers and body.

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

No Hooks.

Return

Array. Array with response headers and body.

Usage

$result = WP_Http::processResponse( $strResponse ) // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid;
$strResponse(string) (required)
The full response string.

Changelog

Since 2.7.0 Introduced.

Code of WP_Http::processResponse() WP 5.7

<?php
public static function processResponse( $strResponse ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
	$res = explode( "\r\n\r\n", $strResponse, 2 );

	return array(
		'headers' => $res[0],
		'body'    => isset( $res[1] ) ? $res[1] : '',
	);
}