Module: HTTPX::Plugins::ResponseCache::InstanceMethods
- Defined in:
- lib/httpx/plugins/response_cache.rb
Instance Method Summary collapse
- #build_request ⇒ Object
-
#clear_response_cache ⇒ Object
wipes out all cached responses from the cache store.
Instance Method Details
#build_request ⇒ Object
92 93 94 95 96 97 98 99 |
# File 'lib/httpx/plugins/response_cache.rb', line 92 def build_request(*) request = super return request unless cacheable_request?(request) prepare_cache(request) request end |
#clear_response_cache ⇒ Object
wipes out all cached responses from the cache store.
88 89 90 |
# File 'lib/httpx/plugins/response_cache.rb', line 88 def clear_response_cache @options.response_cache_store.clear end |