Module: Rack::Client::DualBand
- Included in:
- Auth::Basic, Auth::Digest::MD5, Cache::Context, CookieJar::Context, FollowRedirects, Handler::EmHttp, Handler::Excon, Handler::NetHTTP, Handler::Typhoeus
- Defined in:
- lib/rack/client/core/dual_band.rb
Instance Method Summary collapse
Instance Method Details
#call(env, &block) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/rack/client/core/dual_band.rb', line 4 def call(env, &block) if block_given? async_call(env, &block) else sync_call(env) end end |