Module: HttpStatusChecker::Connection

Defined in:
lib/http_status_checker/connection.rb

Class Method Summary collapse

Class Method Details

.get_header(url) ⇒ Object



3
4
5
6
7
# File 'lib/http_status_checker/connection.rb', line 3

def self.get_header(url)
  uri = URI.parse(url)
  http = Net::HTTP.new(uri.host)
  http.get(uri.request_uri)
end