lib/contrast/agent/response.rb in contrast-agent-6.0.0 vs lib/contrast/agent/response.rb in contrast-agent-6.1.0
- old
+ new
@@ -20,9 +20,11 @@
include Contrast::Components::Logger::InstanceMethods
include Contrast::Utils::ResponseUtils
extend Forwardable
+ # @return [Array, Rack::Response] The Rack Response passed by the application & middleware. It can be an Array
+ # in format [response_code, header_hash, response_body] or an instance of Rack::Response
attr_reader :rack_response
def initialize rack_response
@rack_response = rack_response
@is_array = !rack_response.is_a?(Rack::Response)