Module: Datadog::Core::Telemetry::Http::Response

Included in:
Adapters::Net::Response, InternalErrorResponse
Defined in:
lib/datadog/core/telemetry/http/response.rb

Overview

Module for base HTTP response

Instance Method Summary collapse

Instance Method Details

#client_error?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/datadog/core/telemetry/http/response.rb', line 23

def client_error?
  nil
end

#codeObject



35
36
37
# File 'lib/datadog/core/telemetry/http/response.rb', line 35

def code
  nil
end

#inspectObject



39
40
41
42
43
44
# File 'lib/datadog/core/telemetry/http/response.rb', line 39

def inspect
  "#{self.class} ok?:#{ok?} unsupported?:#{unsupported?}, " \
  "not_found?:#{not_found?}, client_error?:#{client_error?}, " \
  "server_error?:#{server_error?}, internal_error?:#{internal_error?}, " \
  "payload:#{payload}"
end

#internal_error?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/datadog/core/telemetry/http/response.rb', line 31

def internal_error?
  nil
end

#not_found?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/datadog/core/telemetry/http/response.rb', line 19

def not_found?
  nil
end

#ok?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/datadog/core/telemetry/http/response.rb', line 11

def ok?
  nil
end

#payloadObject



7
8
9
# File 'lib/datadog/core/telemetry/http/response.rb', line 7

def payload
  nil
end

#server_error?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/datadog/core/telemetry/http/response.rb', line 27

def server_error?
  nil
end

#unsupported?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/datadog/core/telemetry/http/response.rb', line 15

def unsupported?
  nil
end