lib/httpx/chainable.rb in httpx-0.8.2 vs lib/httpx/chainable.rb in httpx-0.9.0
- old
+ new
@@ -8,12 +8,12 @@
request(:#{meth}, uri, **options)
end
MOD
end
- def request(verb, uri, **options)
- branch(default_options).request(verb, uri, **options)
+ def request(*args, **options)
+ branch(default_options).request(*args, **options)
end
# :nocov:
def timeout(**args)
warn ":#{__method__} is deprecated, use :with_timeout instead"
@@ -57,10 +57,9 @@
def default_options
@options || Options.new
end
- # :nodoc:
def branch(options, &blk)
return self.class.new(options, &blk) if is_a?(Session)
Session.new(options, &blk)
end