Method: Datadog::Core::Remote::Transport::HTTP::Negotiation::Response#initialize

Defined in:
lib/datadog/core/remote/transport/http/negotiation.rb

#initialize(http_response, options = {}) ⇒ Response

Returns a new instance of Response.



22
23
24
25
26
27
28
29
30
31
# File 'lib/datadog/core/remote/transport/http/negotiation.rb', line 22

def initialize(http_response, options = {})
  super(http_response)

  # TODO: transform endpoint hash in a better object for negotiation
  # TODO: transform config in a better object, notably config has max_request_bytes
  @version = options[:version]
  @endpoints = options[:endpoints]
  @config = options[:config]
  @span_events = options[:span_events]
end