protected parseBody ( string $body, integer $status ) : array | object | ||
$body | string | The raw, unparsed response body. |
$status | integer | The HTTP status code, used to see if additional error handling is needed. |
return | array | object | The parsed response body. Type is controlled by Request::setReturnAssoc(). |