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
23 24 25 |
# File 'lib/datadog/core/telemetry/http/response.rb', line 23 def client_error? nil end |
#code ⇒ Object
35 36 37 |
# File 'lib/datadog/core/telemetry/http/response.rb', line 35 def code nil end |
#inspect ⇒ Object
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
31 32 33 |
# File 'lib/datadog/core/telemetry/http/response.rb', line 31 def internal_error? nil end |
#not_found? ⇒ Boolean
19 20 21 |
# File 'lib/datadog/core/telemetry/http/response.rb', line 19 def not_found? nil end |
#ok? ⇒ Boolean
11 12 13 |
# File 'lib/datadog/core/telemetry/http/response.rb', line 11 def ok? nil end |
#payload ⇒ Object
7 8 9 |
# File 'lib/datadog/core/telemetry/http/response.rb', line 7 def payload nil end |
#server_error? ⇒ Boolean
27 28 29 |
# File 'lib/datadog/core/telemetry/http/response.rb', line 27 def server_error? nil end |
#unsupported? ⇒ Boolean
15 16 17 |
# File 'lib/datadog/core/telemetry/http/response.rb', line 15 def unsupported? nil end |