Skip to content

class Athena::Framework::Events::Response
inherits Athena::EventDispatcher::Event #

Emitted after the route's action has been executed, but before the response has been returned to the client.

This event can be listened on to modify the response object further before it is returned; such as adding headers/cookies, compressing the response, etc.

See the Getting Started docs for more information.

Included modules

Athena::Framework::Events::RequestAware

Constructors#

.new(request : ATH::Request, response : ATH::Response)#

View source

Methods#

#response : ATH::Response#

The response object.

View source

#response=(response : ATH::Response)#

The response object.

View source