# File lib/rbot/core/utils/httputil.rb, line 609 def head(uri, options = {}, &block) # :yields: resp opts = {:method => :head}.merge(options) begin resp = get_response(uri, opts, &block) # raise "http error #{resp}" if Net::HTTPClientError === resp || # Net::HTTPServerError == resp return resp rescue Exception => e error e end return nil end