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
- #client_error? ⇒ Boolean
- #code ⇒ Object
- #inspect ⇒ Object
- #internal_error? ⇒ Boolean
- #not_found? ⇒ Boolean
- #ok? ⇒ Boolean
- #payload ⇒ Object
- #server_error? ⇒ Boolean
- #unsupported? ⇒ Boolean
Instance Method Details
#client_error? ⇒ Boolean
25 26 27 |
# File 'lib/datadog/core/telemetry/http/response.rb', line 25 def client_error? nil end |
#code ⇒ Object
37 38 39 |
# File 'lib/datadog/core/telemetry/http/response.rb', line 37 def code nil end |
#inspect ⇒ Object
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
33 34 35 |
# File 'lib/datadog/core/telemetry/http/response.rb', line 33 def internal_error? nil end |
#not_found? ⇒ Boolean
21 22 23 |
# File 'lib/datadog/core/telemetry/http/response.rb', line 21 def not_found? nil end |
#ok? ⇒ Boolean
13 14 15 |
# File 'lib/datadog/core/telemetry/http/response.rb', line 13 def ok? nil end |
#payload ⇒ Object
9 10 11 |
# File 'lib/datadog/core/telemetry/http/response.rb', line 9 def payload nil end |
#server_error? ⇒ Boolean
29 30 31 |
# File 'lib/datadog/core/telemetry/http/response.rb', line 29 def server_error? nil end |
#unsupported? ⇒ Boolean
17 18 19 |
# File 'lib/datadog/core/telemetry/http/response.rb', line 17 def unsupported? nil end |