Sha256: 4ed5e08640b0140215623af1a4e67489ced7648e28da2b1b896689c662c57fd6

Contents?: true

Size: 501 Bytes

Versions: 15

Compression:

Stored size: 501 Bytes

Contents

# typed: true

module Datadog
  module AppSec
    module Contrib
      module Rack
        # Normalized extration of data from Rack::Response
        module Response
          def self.headers(response)
            response.headers.each_with_object({}) { |(k, v), h| h[k.downcase] = v }
          end

          def self.cookies(response)
            response.cookies
          end

          def self.status(response)
            response.status
          end
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ddtrace-1.8.0 lib/datadog/appsec/contrib/rack/response.rb
ddtrace-1.7.0 lib/datadog/appsec/contrib/rack/response.rb
ddtrace-1.6.1 lib/datadog/appsec/contrib/rack/response.rb
ddtrace-1.6.0 lib/datadog/appsec/contrib/rack/response.rb
ddtrace-1.5.2 lib/datadog/appsec/contrib/rack/response.rb
ddtrace-1.5.1 lib/datadog/appsec/contrib/rack/response.rb
ddtrace-1.5.0 lib/datadog/appsec/contrib/rack/response.rb
ddtrace-1.4.2 lib/datadog/appsec/contrib/rack/response.rb
ddtrace-1.4.1 lib/datadog/appsec/contrib/rack/response.rb
ddtrace-1.4.0 lib/datadog/appsec/contrib/rack/response.rb
ddtrace-1.3.0 lib/datadog/appsec/contrib/rack/response.rb
ddtrace-1.2.0 lib/datadog/appsec/contrib/rack/response.rb
ddtrace-1.1.0 lib/datadog/appsec/contrib/rack/response.rb
ddtrace-1.0.0 lib/datadog/appsec/contrib/rack/response.rb
ddtrace-1.0.0.beta2 lib/datadog/appsec/contrib/rack/response.rb