public function download($url, $dest, $data = null, $headers = [])
    {
        $request = $this->prepareRequest(new Request(), 'GET', $url, $data, $headers);

        $transport = $this->getTransport();

        if (!$transport::isSupported()) {
            throw new \RangeException(get_class($transport) . ' driver not supported.');
        }

        return $transport->download($request, $dest);
    }