Class: Innate::Response
- Inherits:
-
Rack::Response
- Object
- Rack::Response
- Innate::Response
- Includes:
- Optioned
- Defined in:
- lib/innate/response.rb
Instance Method Summary collapse
Methods included from Optioned
Instance Method Details
#finish ⇒ Object
18 19 20 21 22 |
# File 'lib/innate/response.rb', line 18 def finish .headers.each{|key, value| self[key] ||= value } Current.session.flush(self) super end |
#reset ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/innate/response.rb', line 10 def reset self.status = 200 self.header.delete('Content-Type') body.clear self.length = 0 self end |