Class: HttpArchive::Response
- Inherits:
-
Object
- Object
- HttpArchive::Response
- Defined in:
- lib/http_archive/classes.rb
Overview
Holds information about the response for an interaction
Instance Attribute Summary collapse
-
#body_size ⇒ Fixnum
Size of the response body.
-
#content ⇒ Hash
Content of the response body.
-
#cookies ⇒ Array
A list of cookie objects for this response.
-
#headers ⇒ Hash
The headers of this response.
-
#headers_size ⇒ Fixnum
Size of the response header.
-
#http_version ⇒ String
The HTTP version of this response.
-
#redirect_url ⇒ String
Redirection target URL from location response header.
-
#status ⇒ Fixnum
The status of this request.
-
#status_text ⇒ String
The status of this request as text description.
Instance Attribute Details
#body_size ⇒ Fixnum
Size of the response body
130 131 132 |
# File 'lib/http_archive/classes.rb', line 130 def body_size @body_size end |
#content ⇒ Hash
Content of the response body
135 136 137 |
# File 'lib/http_archive/classes.rb', line 135 def content @content end |
#cookies ⇒ Array
A list of cookie objects for this response
119 120 121 |
# File 'lib/http_archive/classes.rb', line 119 def @cookies end |
#headers ⇒ Hash
The headers of this response
124 125 126 |
# File 'lib/http_archive/classes.rb', line 124 def headers @headers end |
#headers_size ⇒ Fixnum
Size of the response header
127 128 129 |
# File 'lib/http_archive/classes.rb', line 127 def headers_size @headers_size end |
#http_version ⇒ String
The HTTP version of this response
116 117 118 |
# File 'lib/http_archive/classes.rb', line 116 def http_version @http_version end |
#redirect_url ⇒ String
Redirection target URL from location response header.
138 139 140 |
# File 'lib/http_archive/classes.rb', line 138 def redirect_url @redirect_url end |
#status ⇒ Fixnum
The status of this request
110 111 112 |
# File 'lib/http_archive/classes.rb', line 110 def status @status end |
#status_text ⇒ String
The status of this request as text description
113 114 115 |
# File 'lib/http_archive/classes.rb', line 113 def status_text @status_text end |