# File 'lib/httpx/adapters/webmock.rb', line 155defdisable!returnunless@original_sessionHTTPX.send(:remove_const,:Session)HTTPX.send(:const_set,:Session,@original_session)end
.enable! ⇒ Object
146
147
148
149
150
151
152
153
# File 'lib/httpx/adapters/webmock.rb', line 146defenable!@original_session||=HTTPX::Sessionwebmock_session=HTTPX.plugin(Plugin)HTTPX.send(:remove_const,:Session)HTTPX.send(:const_set,:Session,webmock_session.class)end