|
| parseAcceptHeader ($header) |
| Parses one of the http headers which can have a list of values with quality param.
|
|
| parseResponseHeaders (&$data, $headersProcessed=false, $debug=0) |
| Parses HTTP an http response's headers and separates them from the body.
|
|
|
static | decodeChunked ($buffer) |
|
◆ parseAcceptHeader()
PhpXmlRpc\Helper\Http::parseAcceptHeader |
( |
| $header | ) |
|
◆ parseResponseHeaders()
PhpXmlRpc\Helper\Http::parseResponseHeaders |
( |
& | $data, |
|
|
| $headersProcessed = false, |
|
|
| $debug = 0 ) |
Parses HTTP an http response's headers and separates them from the body.
- Parameters
-
string | $data | the http response, headers and body. It will be stripped of headers |
bool | $headersProcessed | when true, we assume that response inflating and dechunking has been already carried out |
int | $debug | when > 0, logs to screen messages detailing info about the parsed data |
- Return values
-
array | with keys 'headers', 'cookies', 'raw_data' and 'status_code' |
- Exceptions
-
- Todo
- if $debug is < 0, we could avoid populating 'raw_data' and 'headers' in the returned value - but that would be a weird API...
The documentation for this class was generated from the following file:
- lib/phpxmlrpc/Helper/Http.php