Sha256: 34f5dfdc7924325e73296ae5a244c4adf28148b53a5fad93b60caa832b81ab58

Contents?: true

Size: 408 Bytes

Versions: 69

Compression:

Stored size: 408 Bytes

Contents

module HTTP
  class Request
    def webmock_signature
      request_body = if defined?(HTTP::Request::Body)
                       ''.tap { |string| body.each { |part| string << part } }
                     else
                       body
                     end

      ::WebMock::RequestSignature.new(verb, uri.to_s, {
        headers: headers.to_h,
        body: request_body
      })
    end
  end
end

Version data entries

69 entries across 69 versions & 5 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/request.rb
webmock-3.18.1 lib/webmock/http_lib_adapters/http_rb/request.rb
webmock-3.18.0 lib/webmock/http_lib_adapters/http_rb/request.rb
webmock-3.15.2 lib/webmock/http_lib_adapters/http_rb/request.rb
webmock-3.16.2 lib/webmock/http_lib_adapters/http_rb/request.rb
webmock-3.16.1 lib/webmock/http_lib_adapters/http_rb/request.rb
webmock-3.15.1 lib/webmock/http_lib_adapters/http_rb/request.rb
webmock-3.17.1 lib/webmock/http_lib_adapters/http_rb/request.rb
webmock-3.17.0 lib/webmock/http_lib_adapters/http_rb/request.rb
logstash-output-scalyr-0.2.1.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/lib/webmock/http_lib_adapters/http_rb/request.rb
logstash-output-scalyr-0.2.0 vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/lib/webmock/http_lib_adapters/http_rb/request.rb
logstash-output-scalyr-0.2.0.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/lib/webmock/http_lib_adapters/http_rb/request.rb
logstash-output-scalyr-0.1.26.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/lib/webmock/http_lib_adapters/http_rb/request.rb
logstash-output-scalyr-0.1.25.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/lib/webmock/http_lib_adapters/http_rb/request.rb
logstash-output-scalyr-0.1.24.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/lib/webmock/http_lib_adapters/http_rb/request.rb
logstash-output-scalyr-0.1.23.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/lib/webmock/http_lib_adapters/http_rb/request.rb
logstash-output-scalyr-0.1.22.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/lib/webmock/http_lib_adapters/http_rb/request.rb
logstash-output-scalyr-0.1.21.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/lib/webmock/http_lib_adapters/http_rb/request.rb
logstash-output-scalyr-0.1.20.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/lib/webmock/http_lib_adapters/http_rb/request.rb
webmock-3.14.0 lib/webmock/http_lib_adapters/http_rb/request.rb