# File lib/rbot/core/utils/httputil.rb, line 591 def get(uri, options = {}, &block) # :yields: resp begin resp = get_response(uri, options, &block) raise "http error: #{resp}" unless Net::HTTPOK === resp || Net::HTTPPartialContent === resp return resp.body rescue Exception => e error e end return nil end