class ActionController::Metal

def to_a

:api: private
def to_a
  response ? response.to_a : [status, headers, response_body]
end