class HTTP::Client

Public Instance Methods

__perform__(request, options)
Alias for: perform
perform(request, options) click to toggle source
# File lib/webmock/http_lib_adapters/http_rb/client.rb, line 5
def perform(request, options)
  return __perform__(request, options) unless webmock_enabled?

  response = WebMockPerform.new(request) { __perform__(request, options) }.exec
  options.features.each { |_name, feature| response = feature.wrap_response(response) }
  response
end
Also aliased as: __perform__
webmock_enabled?() click to toggle source
# File lib/webmock/http_lib_adapters/http_rb/client.rb, line 13
def webmock_enabled?
  ::WebMock::HttpLibAdapters::HttpRbAdapter.enabled?
end