Class: Rage::Response
- Inherits:
-
Object
- Object
- Rage::Response
- Defined in:
- lib/rage/response.rb
Instance Method Summary collapse
-
#body ⇒ String
Returns the content of the response as a string.
-
#headers ⇒ Hash
Returns the headers for the response.
Instance Method Details
#body ⇒ String
Returns the content of the response as a string. This contains the contents of any calls to render
.
12 13 14 |
# File 'lib/rage/response.rb', line 12 def body @body[0] end |
#headers ⇒ Hash
Returns the headers for the response.
18 19 20 |
# File 'lib/rage/response.rb', line 18 def headers @headers end |