splitting out Unirest\File and updating README

This commit is contained in:
Ahmad Nassri
2015-01-14 18:31:21 -05:00
parent ed2a2df982
commit be9bca1d5a
7 changed files with 64 additions and 66 deletions

View File

@@ -4,7 +4,6 @@ namespace Unirest;
class Response
{
public $code;
public $raw_body;
public $body;
@@ -39,9 +38,8 @@ class Response
if (function_exists('http_parse_headers')) {
return http_parse_headers($raw_headers);
} else {
$headers = array();
$key = '';
$headers = array();
foreach (explode("\n", $raw_headers) as $i => $h) {
$h = explode(':', $h, 2);