ActionDispatch::Response

class ActionDispatch::Response

Parent:
Object
Included modules:
ActionDispatch::Http::FilterRedirect, ActionDispatch::Http::Cache::Response

Represents an HTTP response generated by a controller action. Use it to retrieve the current state of the response, or customize the response. It can either represent a real HTTP response (i.e. one that is meant to be sent back to the web browser) or a TestResponse (i.e. one that is generated from integration tests).

Response is mostly a Ruby on Rails framework implementation detail, and should never be used directly in controllers. Controllers should use the methods defined in 登录查看完整内容