module HTTPX::Plugins::ResponseCache::InstanceMethods

  1. lib/httpx/plugins/response_cache.rb

Methods

Public Instance

  1. build_request
  2. clear_response_cache

Public Instance methods

build_request(*)
[show source]
   # File lib/httpx/plugins/response_cache.rb
92 def build_request(*)
93   request = super
94   return request unless cacheable_request?(request)
95 
96   prepare_cache(request)
97 
98   request
99 end
clear_response_cache()

wipes out all cached responses from the cache store.

[show source]
   # File lib/httpx/plugins/response_cache.rb
88 def clear_response_cache
89   @options.response_cache_store.clear
90 end