Module: HttpStatusChecker::Connection
- Included in:
- HttpStatusChecker
- Defined in:
- lib/http_status_checker/connection.rb
Instance Method Summary collapse
Instance Method Details
#get_header(url) ⇒ Object
3 4 5 6 7 |
# File 'lib/http_status_checker/connection.rb', line 3 def get_header(url) uri = URI.parse(url) http = Net::HTTP.new(uri.host) http.head(uri.request_uri) end |