[ Index ] |
PHP Cross Reference of Phabricator |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 189 lines (6 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
Response:: (8 methods):
__construct()
hasErrors()
hasBody()
_parse()
_parseHeaders()
_parseCode()
_interpretHeaders()
__toString()
__construct($body, $headers, Request $request) X-Ref |
param: string $body param: string $headers param: Request $request |
hasErrors() X-Ref |
Status Code Definitions Informational 1xx Successful 2xx Redirection 3xx Client Error 4xx Server Error 5xx http://pretty-rfc.herokuapp.com/RFC2616#status.codes return: bool Did we receive a 4xx or 5xx? |
hasBody() X-Ref |
return: return bool |
_parse($body) X-Ref |
Parse the response into a clean data structure (most often an associative array) based on the expected Mime type. param: string Http response body return: array|string|object the response parse accordingly |
_parseHeaders($headers) X-Ref |
Parse text headers from response into array of key value pairs param: string $headers raw headers return: array parse headers |
_parseCode($headers) X-Ref |
No description |
_interpretHeaders() X-Ref |
After we've parse the headers, let's clean things up a bit and treat some headers specially |
__toString() X-Ref |
return: string |
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |