instance method
to_a
Ruby on Rails 4.1.16
Since v3.0.20Signature
to_a()
Turns the Response into a Rack-compatible array of the status, headers, and body.
Source
# File actionpack/lib/action_dispatch/http/response.rb, line 277
def to_a
rack_response @status, @header.to_hash
end
Defined in actionpack/lib/action_dispatch/http/response.rb line 277
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Response