Class: Datadog::SymbolDatabase::Transport::HTTP::API::Endpoint Private

Inherits:
Core::Transport::HTTP::API::Endpoint show all
Defined in:
lib/datadog/symbol_database/transport/http/endpoint.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

POST endpoint for symbol database uploads. Multipart form-data is triggered by setting env.form on the request (handled in Core::Transport::HTTP::Adapters::Net); the multipart library sets Content-Type itself.

Instance Attribute Summary collapse

Attributes inherited from Core::Transport::HTTP::API::Endpoint

#path, #verb

Instance Method Summary collapse

Methods inherited from Core::Transport::HTTP::API::Endpoint

#call

Constructor Details

#initialize(path, encoder) ⇒ Endpoint

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Endpoint.

Parameters:

  • path (String)

    URL path for the endpoint

  • encoder (#encode)

    Encoder for request data



19
20
21
22
# File 'lib/datadog/symbol_database/transport/http/endpoint.rb', line 19

def initialize(path, encoder)
  super(:post, path)
  @encoder = encoder
end

Instance Attribute Details

#encoderObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



15
16
17
# File 'lib/datadog/symbol_database/transport/http/endpoint.rb', line 15

def encoder
  @encoder
end