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