class CodeClimate::TestReporter::Client

def http_client(uri)

def http_client(uri)
  Net::HTTP.new(uri.host, uri.port).tap do |http|
    if uri.scheme == "https"
      http.use_ssl = true
      http.verify_mode = OpenSSL::SSL::VERIFY_PEER
      http.ca_file = ca_file
      http.verify_depth = 5
    end
    http.open_timeout = CodeClimate::TestReporter.configuration.timeout
    http.read_timeout = CodeClimate::TestReporter.configuration.timeout
  end
end