mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-08-10 00:01:27 -04:00
added top-level #wrap
This commit is contained in:
parent
82ef579047
commit
bde0dd1332
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user