lib/httpx/session.rb in httpx-0.6.5 vs lib/httpx/session.rb in httpx-0.6.6

- old
+ new

@@ -249,15 +249,18 @@ @default_options.freeze end self end + # :nocov: def plugins(pls) + warn ":#{__method__} is deprecated, use :plugin instead" pls.each do |pl, *args| plugin(pl, *args) end self end + # :nocov: end plugin(:proxy) unless ENV.grep(/https?_proxy$/i).empty? end end