class method
self.create
Ruby on Rails 7.2.3
Since v5.2.8.1Signature
self.create(status = 200, headers = {}, body = [], default_headers: self.default_headers)
No documentation comment.
Parameters
-
statusopt = 200 -
headersopt = {} -
bodyopt = [] -
default_headerskey = self.default_headers
Source
# File actionpack/lib/action_dispatch/http/response.rb, line 173
def self.create(status = 200, headers = {}, body = [], default_headers: self.default_headers)
headers = merge_default_headers(headers, default_headers)
new status, headers, body
end
Defined in actionpack/lib/action_dispatch/http/response.rb line 173
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Response