Sha256: 16e662e9b0224f0f0f9fa2ac17b10f09a5d91d6ac5d20c908c6d7d6d913111e6

Contents?: true

Size: 540 Bytes

Versions: 6

Compression:

Stored size: 540 Bytes

Contents

require 'forwardable'
require 'ddtrace/transport/response'

module Datadog
  module Transport
    module HTTP
      # Wraps an HTTP response from an adapter.
      #
      # Used by endpoints to wrap responses from adapters with
      # fields or behavior that's specific to that endpoint.
      module Response
        extend ::Forwardable

        def initialize(http_response)
          @http_response = http_response
        end

        def_delegators :@http_response, *Transport::Response.instance_methods
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ddtrace-0.26.1 lib/ddtrace/transport/http/response.rb
ddtrace-0.28.0 lib/ddtrace/transport/http/response.rb
ddtrace-0.27.0 lib/ddtrace/transport/http/response.rb
ddtrace-0.26.0 lib/ddtrace/transport/http/response.rb
ddtrace-0.25.1 lib/ddtrace/transport/http/response.rb
ddtrace-0.25.0 lib/ddtrace/transport/http/response.rb