Sha256: 4eba573bec7e71de5c91940cde7d4a8bc911b41f29b2a5a0d6ccca1a158ebd6c
Contents?: true
Size: 470 Bytes
Versions: 29
Compression:
Stored size: 470 Bytes
Contents
module HTTP class Client alias_method :__perform__, :perform 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 def webmock_enabled? ::WebMock::HttpLibAdapters::HttpRbAdapter.enabled? end end end
Version data entries
29 entries across 29 versions & 3 rubygems