private function createResponse($result)
    {
        $status = curl_getinfo($this->handler, CURLINFO_HTTP_CODE);
        list($header, $body) = $this->splitHeaderFromBody($result);
        return new Response($status, trim($body), $this->parseHeaders($header));
    }
private function createResponse($result)
    {
        $status = curl_getinfo($this->handler, CURLINFO_HTTP_CODE);
        list($header, $body) = $this->splitHeaderFromBody($result);
        return new Response($status, trim($body), $this->parseHeaders($header));
    }
private function createResponse ( $ result ) { $ status = curl_getinfo ( $ this -> handler , CURLINFO_HTTP_CODE ) ; list ( $ header , $ body ) = $ this -> splitHeaderFromBody ( $ result ) ; return new Response ( $ status , trim ( $ body ) , $ this -> parseHeaders ( $ header ) ) ; }
Creates a response from cURL execution result

@param string $result

@return Response
Creates a response from cURL execution result