class Seahorse::Client::Request
def set_response_target(options, &block)
def set_response_target(options, &block) target = options[:target] target ||= block target ||= context.params.delete(:response_target) if target @context.http_response.body = case target when Proc then BlockIO.new(&target) when String, Pathname then ManagedFile.new(target, 'w+b') else target end end end