src/Request/Request.php
protected function buildResponse()
    {
        $this->curl->persist();
        $response = $this->curl->exec();
        $info = $this->curl->getInfo();
        $errors = [
            'text' => $this->curl->error(),
            'code' => $this->curl->errno()
        ];

        try {
            return new Response(new ResponseBuilder($response, $info, $errors), new Filesystem());
        } catch (ResponseBuilderException $e) {
            throw new RequestException($e->getMessage(), $e->getCode());
        }
    }
protected function buildResponse()
    {
        $this->curl->persist();
        $response = $this->curl->exec();
        $info = $this->curl->getInfo();
        $errors = [
            'text' => $this->curl->error(),
            'code' => $this->curl->errno()
        ];

        try {
            return new Response(new ResponseBuilder($response, $info, $errors), new Filesystem());
        } catch (ResponseBuilderException $e) {
            throw new RequestException($e->getMessage(), $e->getCode());
        }
    }
protected function buildResponse ( ) { $ this -> curl -> persist ( ) ; $ response = $ this -> curl -> exec ( ) ; $ info = $ this -> curl -> getInfo ( ) ; $ errors = [ 'text' => $ this -> curl -> error ( ) , 'code' => $ this -> curl -> errno ( ) ] ; try { return new Response ( new ResponseBuilder ( $ response , $ info , $ errors ) , new Filesystem ( ) ) ; } catch ( ResponseBuilderException $ e ) { throw new RequestException ( $ e -> getMessage ( ) , $ e -> getCode ( ) ) ; } }
Construct an instance of the Response based on data received from the server

@return Response
@throws RequestException
Construct an instance of the Response based on data received from the server