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)


25
26
27
# File 'lib/datadog/core/telemetry/http/response.rb', line 25

def client_error?
  nil
end

#codeObject



37
38
39
# File 'lib/datadog/core/telemetry/http/response.rb', line 37

def code
  nil
end

#inspectObject



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

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)


33
34
35
# File 'lib/datadog/core/telemetry/http/response.rb', line 33

def internal_error?
  nil
end

#not_found?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/datadog/core/telemetry/http/response.rb', line 21

def not_found?
  nil
end

#ok?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/datadog/core/telemetry/http/response.rb', line 13

def ok?
  nil
end

#payloadObject



9
10
11
# File 'lib/datadog/core/telemetry/http/response.rb', line 9

def payload
  nil
end

#server_error?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/datadog/core/telemetry/http/response.rb', line 29

def server_error?
  nil
end

#unsupported?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/datadog/core/telemetry/http/response.rb', line 17

def unsupported?
  nil
end