Sha256: b1e17baa79418f1e741f612074b18a19f46f436cfa73a5aa2024387c87678543

Contents?: true

Size: 819 Bytes

Versions: 35

Compression:

Stored size: 819 Bytes

Contents

module Datadog
  module Transport
    module HTTP
      # Data structure for an HTTP request
      class Env < Hash
        attr_reader \
          :request

        def initialize(request, options = nil)
          @request = request
          merge!(options) unless options.nil?
        end

        def verb
          self[:verb]
        end

        def verb=(value)
          self[:verb] = value
        end

        def path
          self[:path]
        end

        def path=(value)
          self[:path] = value
        end

        def body
          self[:body]
        end

        def body=(value)
          self[:body] = value
        end

        def headers
          self[:headers] ||= {}
        end

        def headers=(value)
          self[:headers] = value
        end
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 2 rubygems

Version Path
ddtrace-0.46.0 lib/ddtrace/transport/http/env.rb
ddtrace-0.45.0 lib/ddtrace/transport/http/env.rb
ddtrace-0.44.0 lib/ddtrace/transport/http/env.rb
ddtrace-0.43.0 lib/ddtrace/transport/http/env.rb
ddtrace-0.42.0 lib/ddtrace/transport/http/env.rb
ddtrace-0.41.0 lib/ddtrace/transport/http/env.rb
ls-trace-0.2.0 lib/ddtrace/transport/http/env.rb
ddtrace-0.40.0 lib/ddtrace/transport/http/env.rb
ddtrace-0.39.0 lib/ddtrace/transport/http/env.rb
ddtrace-0.38.0 lib/ddtrace/transport/http/env.rb
ddtrace-0.37.0 lib/ddtrace/transport/http/env.rb
ddtrace-0.36.0 lib/ddtrace/transport/http/env.rb
ls-trace-0.1.2 lib/ddtrace/transport/http/env.rb
ddtrace-0.35.2 lib/ddtrace/transport/http/env.rb
ddtrace-0.35.1 lib/ddtrace/transport/http/env.rb
ddtrace-0.35.0 lib/ddtrace/transport/http/env.rb
ddtrace-0.34.2 lib/ddtrace/transport/http/env.rb
ddtrace-0.34.1 lib/ddtrace/transport/http/env.rb
ddtrace-0.34.0 lib/ddtrace/transport/http/env.rb
ddtrace-0.33.1 lib/ddtrace/transport/http/env.rb