module BundleUpdateInteractive::HTTP
def get(url)
def get(url) http(:get, url) end
def head(url)
def head(url) http(:head, url) end
def http(method, url_string)
def http(method, url_string) uri = URI(url_string) response = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme.end_with?("s")) do |http| http.public_send(method, uri.request_uri) end response.extend(Success) end