Class: Flame::Response

Inherits:
Rack::Response
  • Object
show all
Defined in:
lib/flame/response.rb

Overview

Class for responses

Instance Method Summary collapse

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