Httpful\Response::__construct PHP Method

__construct() public method

public __construct ( string $body, string $headers, httpful\Request $request, array $meta_data = [] )
$body string
$headers string
$request httpful\Request
$meta_data array
    public function __construct($body, $headers, Request $request, array $meta_data = array())
    {
        $this->request = $request;
        $this->raw_headers = $headers;
        $this->raw_body = $body;
        $this->meta_data = $meta_data;
        $this->code = $this->_parseCode($headers);
        $this->headers = Response\Headers::fromString($headers);
        $this->_interpretHeaders();
        $this->body = $this->_parse($body);
    }