Class: WebMock::HttpLibAdapters::AsyncHttpClientAdapter
- Inherits:
-
WebMock::HttpLibAdapter
- Object
- WebMock::HttpLibAdapter
- WebMock::HttpLibAdapters::AsyncHttpClientAdapter
- Defined in:
- lib/webmock/http_lib_adapters/async_http_client_adapter.rb
Constant Summary collapse
Class Method Summary collapse
Methods inherited from WebMock::HttpLibAdapter
Class Method Details
permalink .disable! ⇒ Object
[View source] [View on GitHub]
24 25 26 27 |
# 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 |
permalink .enable! ⇒ Object
[View source] [View on GitHub]
19 20 21 22 |
# 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 |