Skip to content

class Athena::Routing::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 external documentation for more information.

Included modules

Athena::Routing::Events::RequestAware

Class methods#

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

View source

Methods#

#response : ART::Response #

The response object.

View source

#response=(response : ART::Response) #

The response object.

View source