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

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

Overview

Extensions for HTTP API Instance

Defined Under Namespace

Classes: ConfigNotSupportedError

Instance Method Summary collapse

Instance Method Details

#send_config(env) ⇒ Object



219
220
221
222
223
224
225
# File 'lib/datadog/core/remote/transport/http/config.rb', line 219

def send_config(env)
  raise ConfigNotSupportedError, spec unless spec.is_a?(Config::API::Spec)

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