Attributes
| original_request | [W] |
Public Class methods
new(*)
[show source]
# File lib/httpx/plugins/cache.rb 190 def initialize(*) 191 super 192 @cached = false 193 end
Public Instance methods
cached?()
whether this Response was duplicated from a previously {RequestMethods#cached_response}.
[show source]
# File lib/httpx/plugins/cache.rb 201 def cached? 202 @cached 203 end
mark_as_cached!()
sets this Response as being duplicated from a previously cached response.
[show source]
# File lib/httpx/plugins/cache.rb 206 def mark_as_cached! 207 @cached = true 208 end
original_request()
a copy of the request this response was originally cached from
[show source]
# File lib/httpx/plugins/cache.rb 196 def original_request 197 @original_request || @request 198 end