Sha256: c9af2a880665c67fea484e15710d538a0d2a107839bd43592e032bfcaaae8120

Contents?: true

Size: 361 Bytes

Versions: 9

Compression:

Stored size: 361 Bytes

Contents

module HTTP
  class Client
    alias_method :__perform__, :perform

    def perform(request, options)
      return __perform__(request, options) unless webmock_enabled?

      WebMockPerform.new(request, options) { __perform__(request, options) }.exec
    end

    def webmock_enabled?
      ::WebMock::HttpLibAdapters::HttpRbAdapter.enabled?
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
fluent-plugin-google-cloud-logging-on-prem-0.1.0 vendor/ruby/3.1.0/gems/webmock-3.18.1/lib/webmock/http_lib_adapters/http_rb/client.rb
webmock-3.18.1 lib/webmock/http_lib_adapters/http_rb/client.rb
webmock-3.18.0 lib/webmock/http_lib_adapters/http_rb/client.rb
webmock-3.15.2 lib/webmock/http_lib_adapters/http_rb/client.rb
webmock-3.16.2 lib/webmock/http_lib_adapters/http_rb/client.rb
webmock-3.16.1 lib/webmock/http_lib_adapters/http_rb/client.rb
webmock-3.15.1 lib/webmock/http_lib_adapters/http_rb/client.rb
webmock-3.17.1 lib/webmock/http_lib_adapters/http_rb/client.rb
webmock-3.17.0 lib/webmock/http_lib_adapters/http_rb/client.rb