method
to_a
v3.1.0 -
Show latest stable
- Class:
ActionDispatch::Response
to_a()public
No documentation available.
# File actionpack/lib/action_dispatch/http/response.rb, line 179
def to_a
assign_default_content_type_and_charset!
handle_conditional_get!
@header["Set-Cookie"] = @header["Set-Cookie"].join("\n") if @header["Set-Cookie"].respond_to?(:join)
if [204, 304].include?(@status)
@header.delete "Content-Type"
[@status, @header, []]
else
[@status, @header, self]
end
end