Class: Flame::Response
- Inherits:
-
Rack::Response
- Object
- Rack::Response
- Flame::Response
- Defined in:
- lib/flame/response.rb
Overview
Class for responses
Instance Method Summary collapse
-
#body=(value) ⇒ Object
Rewrite body assign (reset Content-Length and use #write).
Instance Method Details
#body=(value) ⇒ Object
Rewrite body assign (reset Content-Length and use #write)
5 6 7 8 9 |
# File 'lib/flame/response.rb', line 5 def body=(value) @length = 0 body.clear write value end |