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

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

Overview

Extensions for HTTP API Instance

Instance Method Summary collapse

Instance Method Details

#send_info(env) ⇒ Object



61
62
63
64
65
66
67
68
69
70
71
# File 'lib/datadog/core/remote/transport/http/negotiation.rb', line 61

def send_info(env)
  unless spec.is_a?(Negotiation::API::Spec)
    raise Core::Transport::HTTP::API::Instance::EndpointNotSupportedError.new(
      'info', self
    )
  end

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