class method
self.new
Ruby on Rails 5.2.8.1
Since v3.1.12Signature
self.new(status = 200, header = {}, body = [])
No documentation comment.
Parameters
-
statusopt = 200 -
headeropt = {} -
bodyopt = []
Source
# File actionpack/lib/action_dispatch/http/response.rb, line 163
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
Defined in actionpack/lib/action_dispatch/http/response.rb line 163
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Response