lib/httpx/chainable.rb in httpx-0.17.0 vs lib/httpx/chainable.rb in httpx-0.18.0
- old
+ new
@@ -2,12 +2,12 @@
module HTTPX
module Chainable
%i[head get post put delete trace options connect patch].each do |meth|
class_eval(<<-MOD, __FILE__, __LINE__ + 1)
- def #{meth}(*uri, **options)
- request(:#{meth}, uri, **options)
- end
+ def #{meth}(*uri, **options) # def get(*uri, **options)
+ request(:#{meth}, uri, **options) # request(:get, uri, **options)
+ end # end
MOD
end
def request(*args, **options)
branch(default_options).request(*args, **options)