method
new
v5.2.3 -
Show latest stable
- Class:
ActionDispatch::Response
new(status = 200, header = {}, body = [])public
No documentation available.
# File actionpack/lib/action_dispatch/http/response.rb, line 164
def initialize(status = 200, header = {}, body = [])
super()
@header = Header.new(self, header)
self.body, self.status = body, status
@cv = new_cond
@committed = false
@sending = false
@sent = false
prepare_cache_control!
yield self if block_given?
end