class Athena::Routing::Events::Response

Overview

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

Defined in:

events/response_event.cr

Constructors

Instance Method Summary

Instance methods inherited from module Athena::Routing::Events::RequestAware

request : HTTP::Request request

Constructor methods inherited from module Athena::Routing::Events::RequestAware

new(request : HTTP::Request) new

Constructor Detail

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

[View source]

Instance Method Detail

def response : ART::Response #

The response object.


[View source]
def response=(response : ART::Response) #

The response object.


[View source]