Module: Datadog::Core::Remote::Transport::HTTP::Negotiation::API::Instance

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

Overview

Extensions for HTTP API Instance

Defined Under Namespace

Classes: NegotiationNotSupportedError

Instance Method Summary collapse

Instance Method Details

#send_info(env) ⇒ Object



91
92
93
94
95
96
97
# File 'lib/datadog/core/remote/transport/http/negotiation.rb', line 91

def send_info(env)
  raise NegotiationNotSupportedError, spec unless spec.is_a?(Negotiation::API::Spec)

  spec.send_info(env) do |request_env|
    call(request_env)
  end
end