src/Request.php
public function getResponse()
    {
        if (array_key_exists(CURLOPT_URL, $this->curlOptions)) {
            $handle = curl_init();
        } else {
            $handle = curl_init($this->uri->__toString());
        }

        $headers = [];
        if (count($this->curlHeaders)) {
            foreach ($this->curlHeaders as $key => $value) {
                $headers[] = trim($key) . ': ' . trim($value);
            }

            $this->curlOptions[ CURLOPT_HTTPHEADER ] = $headers;
        }

        if (curl_setopt_array($handle, $this->curlOptions)) {
            $response = (new Response($handle))
                ->setInfo(curl_getinfo($handle))
                ->setContent(curl_exec($handle));

            if ($this->curlAutoClose) {
                curl_close($handle);
            }

            return $response;
        }

        return false;
    }
public function getResponse()
    {
        if (array_key_exists(CURLOPT_URL, $this->curlOptions)) {
            $handle = curl_init();
        } else {
            $handle = curl_init($this->uri->__toString());
        }

        $headers = [];
        if (count($this->curlHeaders)) {
            foreach ($this->curlHeaders as $key => $value) {
                $headers[] = trim($key) . ': ' . trim($value);
            }

            $this->curlOptions[ CURLOPT_HTTPHEADER ] = $headers;
        }

        if (curl_setopt_array($handle, $this->curlOptions)) {
            $response = (new Response($handle))
                ->setInfo(curl_getinfo($handle))
                ->setContent(curl_exec($handle));

            if ($this->curlAutoClose) {
                curl_close($handle);
            }

            return $response;
        }

        return false;
    }
Request::getResponse

Get curl response.

@return Response|bool