Module: Datadog::Transport::HTTP::Response
- Extended by:
- Forwardable
- Included in:
- Profiling::Transport::HTTP::Response, Traces::Response
- Defined in:
- lib/ddtrace/transport/http/response.rb
Overview
Wraps an HTTP response from an adapter.
Used by endpoints to wrap responses from adapters with fields or behavior that's specific to that endpoint.
Instance Method Summary collapse
Instance Method Details
#code ⇒ Object
21 22 23 |
# File 'lib/ddtrace/transport/http/response.rb', line 21 def code @http_response.respond_to?(:code) ? @http_response.code : nil end |
#initialize(http_response) ⇒ Object
15 16 17 |
# File 'lib/ddtrace/transport/http/response.rb', line 15 def initialize(http_response) @http_response = http_response end |