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 22 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 17 def enable! Async::HTTP.send(:remove_const, :Client) Async::HTTP.send(:const_set, :Client, Async::HTTP::WebMockClientWrapper) end