class Desktop::HTTP

Public Class Methods

connection() click to toggle source
# File lib/desktop/http.rb, line 6
def self.connection
  Faraday
end
uri?(path) click to toggle source
# File lib/desktop/http.rb, line 10
def self.uri?(path)
  %w[http https].include? URI.parse(path).scheme
rescue URI::BadURIError, URI::InvalidURIError
  false
end