class HTTP::Client
Public Instance Methods
perform(request, options)
click to toggle source
# File lib/webmock/http_lib_adapters/http_gem/client.rb, line 5 def perform(request, options) return __perform__(request, options) unless webmock_enabled? WebMockPerform.new(request) { __perform__(request, options) }.exec end
Also aliased as: __perform__
webmock_enabled?()
click to toggle source
# File lib/webmock/http_lib_adapters/http_gem/client.rb, line 10 def webmock_enabled? ::WebMock::HttpLibAdapters::HttpGemAdapter.enabled? end