class Dependabot::RegistryClient

def self.get(url:, headers: {}, options: {})

def self.get(url:, headers: {}, options: {})
  raise T.must(cached_error_for(url)) if cached_error_for(url)
  Excon.get(
    url,
    idempotent: true,
    **SharedHelpers.excon_defaults({ headers: headers }.merge(options)),
    retry_interval: 5
  )
rescue Excon::Error::Timeout => e
  cache_error(url, e)
  raise e
end