instance method
rack_response
Ruby on Rails 7.2.3
Since v4.0.13 PrivateSignature
rack_response(status, headers)
No documentation comment.
Parameters
-
statusreq -
headersreq
Source
# File actionpack/lib/action_dispatch/http/response.rb, line 560
def rack_response(status, headers)
if NO_CONTENT_CODES.include?(status)
[status, headers, []]
else
[status, headers, RackBody.new(self)]
end
end
Defined in actionpack/lib/action_dispatch/http/response.rb line 560
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Response