Open Monograph Press  3.3.0
PhpXmlRpc\Helper\Http Class Reference

Public Member Functions

 parseResponseHeaders (&$data, $headersProcessed=false, $debug=0)
 

Static Public Member Functions

static decodeChunked ($buffer)
 

Detailed Description

Definition at line 7 of file Http.php.

Member Function Documentation

◆ decodeChunked()

static PhpXmlRpc\Helper\Http::decodeChunked (   $buffer)
static

Decode a string that is encoded with "chunked" transfer encoding as defined in rfc2068 par. 19.4.6 Code shamelessly stolen from nusoap library by Dietrich Ayala.

Parameters
string$bufferthe string to be decoded
Returns
string

Definition at line 17 of file Http.php.

Referenced by PhpXmlRpc\Helper\Http\parseResponseHeaders().

◆ 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
Returns
array with keys 'headers' and 'cookies'
Exceptions

Definition at line 71 of file Http.php.

References PhpXmlRpc\PhpXmlRpc\$xmlrpcerr, PhpXmlRpc\PhpXmlRpc\$xmlrpcstr, PhpXmlRpc\Helper\Http\decodeChunked(), and PhpXmlRpc\Helper\Logger\instance().


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