Moodle PHP Documentation 4.1
Moodle 4.1.11 (Build: 20240610) (c8c84b4af18)
PhpXmlRpc\Helper\Http Class Reference

Public Member Functions

 parseResponseHeaders (&$data, $headersProcessed=false, $debug=0)
 Parses HTTP an http response headers and separates them from the body.
 

Static Public Member Functions

static decodeChunked ($buffer)
 

Member Function Documentation

◆ parseResponseHeaders()

PhpXmlRpc\Helper\Http::parseResponseHeaders ( & $data,
$headersProcessed = false,
$debug = 0 )

Parses HTTP an http response headers and separates them from the body.

Parameters
string$datathe http response, headers and body. It will be stripped of headers
bool$headersProcessedwhen true, we assume that response inflating and dechunking has been already carried out
Return values
arraywith keys 'headers', 'cookies', 'raw_data' and 'status_code'
Exceptions
HttpException

The documentation for this class was generated from the following file: