module Typhoeus::Request::Memoizable

def memoizable?

Returns:
  • (Boolean) - Return true if memoizable, false else.

Other tags:
    Example: Is request memoizable? -
def memoizable?
  Typhoeus::Config.memoize &&
    (options[:method].nil? || options[:method] == :get)
end

def response=(response)

Other tags:
    Example: Set response. -

Parameters:
  • response (Response) -- The response to set.
def response=(response)
  hydra.memory[self] = response if memoizable?
  super
end