Class: Rage::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/rage/response.rb

Instance Method Summary collapse

Instance Method Details

#bodyString

Returns the content of the response as a string. This contains the contents of any calls to render.

Returns:

  • (String)


12
13
14
# File 'lib/rage/response.rb', line 12

def body
  @body[0]
end

#headersHash

Returns the headers for the response.

Returns:

  • (Hash)


18
19
20
# File 'lib/rage/response.rb', line 18

def headers
  @headers
end