Class: HttpCapture::NetHTTPResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/net/http/capture.rb

Instance Attribute Summary

Attributes inherited from Response

#duration, #request

Instance Method Summary collapse

Methods inherited from Response

#[], #each, #initialize, #status, #successful?

Constructor Details

This class inherits a constructor from HttpCapture::Response

Instance Method Details

#bodyObject


34
35
36
37
# File 'lib/net/http/capture.rb', line 34

def body
  return @real_response.body.stored_body if @real_response.body.respond_to? :stored_body
  @real_response.body
end