module HTTPX::Plugins::Cache::InstanceMethods

  1. lib/httpx/plugins/cache.rb

Methods

Public Instance

  1. build_request
  2. clear_response_cache

Public Instance methods

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

wipes out all cached responses from the cache store.

[show source]
   # File lib/httpx/plugins/cache.rb
85 def clear_response_cache
86   @options.response_cache_store.clear
87 end