sig/plugins/response_cache.rbs in httpx-0.24.7 vs sig/plugins/response_cache.rbs in httpx-1.0.0

- old
+ new

@@ -1,12 +1,13 @@ module HTTPX module Plugins module ResponseCache CACHEABLE_VERBS: Array[verb] + CACHEABLE_STATUS_CODES: Array[Integer] - def self?.cacheable_request?: (Request request) -> bool - def self?.cacheable_response?: (response response) -> bool + def self?.cacheable_request?: (Request & RequestMethods request) -> bool + def self?.cacheable_response?: (::HTTPX::ErrorResponse | (Response & ResponseMethods) response) -> bool def self?.cached_response?: (response response) -> bool class Store @store: Hash[String, Array[Response]] & Mutex_m @@ -32,9 +33,11 @@ def clear_response_cache: () -> void end module RequestMethods + @response_cache_key: String + def response_cache_key: () -> String end module ResponseMethods def copy_from_cached: (Response other) -> void \ No newline at end of file