class WebMock::HttpLibAdapters::AsyncHttpClientAdapter

Constants

OriginalAsyncHttpClient

Public Class Methods

disable!() click to toggle source
# File lib/webmock/http_lib_adapters/async_http_client_adapter.rb, line 24
def disable!
  Async::HTTP.send(:remove_const, :Client)
  Async::HTTP.send(:const_set, :Client, OriginalAsyncHttpClient)
end
enable!() click to toggle source
# File lib/webmock/http_lib_adapters/async_http_client_adapter.rb, line 19
def enable!
  Async::HTTP.send(:remove_const, :Client)
  Async::HTTP.send(:const_set, :Client, Async::HTTP::WebMockClientWrapper)
end