class method self.create

Ruby on Rails 7.0.10

Since v5.2.8.1

Available in: v5.2.8.1 v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

self.create(status = 200, header = {}, body = [], default_headers: self.default_headers)

No documentation comment.

Parameters

status opt = 200
header opt = {}
body opt = []
default_headers key = self.default_headers
Source
# File actionpack/lib/action_dispatch/http/response.rb, line 149
    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 149 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionDispatch::Response

Type at least 2 characters to search.

↑↓ navigate · open · esc close