added top-level #wrap

This commit is contained in:
HoneyryderChuck 2018-11-23 18:04:25 +00:00
parent 82ef579047
commit bde0dd1332

View File

@ -24,6 +24,10 @@ module HTTPX
headers("accept" => String(type))
end
def wrap(&blk)
branch(default_options).wrap(&blk)
end
def plugin(*plugins)
klass = is_a?(Client) ? self.class : Client
klass = Class.new(klass)