Module: YAVDB::Utils::HTTP
- Defined in:
- lib/yavdb/utils/http.rb
Class Method Summary collapse
Class Method Details
.get_page_contents(url, with_cache = true, group_cache_key = 'http') ⇒ Object
25 26 27 28 29 30 31 32 33 |
# File 'lib/yavdb/utils/http.rb', line 25 def self.get_page_contents(url, with_cache = true, group_cache_key = 'http') puts "Requesting #{url}" if with_cache YAVDB::Utils::Cache.cache_contents(group_cache_key, url) { do_request(url) } else do_request(url) end end |