Class: Net::Response
Instance Method Summary (collapse)
-
- (String) body
Returns body of the response.
-
- (Hash) headers
Returns a hash containing key/value pairs of headers.
-
- (String) mime_type
Returns the mime type of the response.
-
- (Fixnum) status
Returns the HTTP status code of the response.
-
- (String) status_message
Returns the HTTP status message of the response according to RFC 2616.
Instance Method Details
- (String) body
Returns body of the response
45 46 47 |
# File 'flow/net/response.rb', line 45 def body .fetch(:body, "") end |
- (Hash) headers
Returns a hash containing key/value pairs of headers
54 55 56 |
# File 'flow/net/response.rb', line 54 def headers @headers end |
- (String) mime_type
Returns the mime type of the response
36 37 38 |
# File 'flow/net/response.rb', line 36 def mime_type [:mime_type] end |
- (Fixnum) status
Returns the HTTP status code of the response
18 19 20 |
# File 'flow/net/response.rb', line 18 def status [:status_code] end |
- (String) status_message
Returns the HTTP status message of the response according to RFC 2616
27 28 29 |
# File 'flow/net/response.rb', line 27 def [:status_message] end |