module HTTPX::Plugins::Cache

  1. lib/httpx/plugins/cache.rb
  2. lib/httpx/plugins/cache/file_store.rb
  3. lib/httpx/plugins/cache/store.rb
  4. show all

This plugin adds support for caching and reusing responses

gitlab.com/os85/httpx/wikis/Cache

Methods

Public Class

  1. extra_options
  2. load_dependencies

Public Class methods

extra_options(options)
[show source]
   # File lib/httpx/plugins/cache.rb
17 def extra_options(options)
18   options.merge(
19     response_cache_store: :store,
20   )
21 end
load_dependencies(*)
[show source]
   # File lib/httpx/plugins/cache.rb
12 def load_dependencies(*)
13   require_relative "cache/store"
14   require_relative "cache/file_store"
15 end