def response
      instrument do |data|
        @response ||= Net::HTTP.start(uri.host, uri.port, use_ssl: true) do |http|
          puts as_curl if Yt.configuration.developing?
          http.request http_request
        end
        data[:response] = @response
      end
    rescue *server_errors => e
      raise Yt::ConnectionError, e.message
    end
def response
      instrument do |data|
        @response ||= Net::HTTP.start(uri.host, uri.port, use_ssl: true) do |http|
          puts as_curl if Yt.configuration.developing?
          http.request http_request
        end
        data[:response] = @response
      end
    rescue *server_errors => e
      raise Yt::ConnectionError, e.message
    end
Run the request and memoize the response or the server error received.