GuzzleHttpPsr7_parse_message

Parses an HTTP message into an associative array.

Description

(array) GuzzleHttp\Psr7\_parse_message( (string) $message ); 

The array contains the start-line key containing the start line of the message, headers key containing an associative array of header array values, and a body key containing the body of the message.

Returns (array)

Parameters (1)

0. $message (string)
HTTP request or response to parse.

Usage

  1. if ( !function_exists( 'GuzzleHttp\Psr7\_parse_message' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'w3-total-cache/lib/Azure/GuzzleHttp/Psr7/functions.php'; 
  3.  
  4. // HTTP request or response to parse. 
  5. $message = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = GuzzleHttp\Psr7\_parse_message($message); 
  9.  

Defined (1)

The function is defined in the following location(s).

/lib/Azure/GuzzleHttp/Psr7/functions.php