class Athena::Routing::Events::Terminate

Overview

Emitted very late in the request's life-cycle, after the response has been sent.

This event can be listened on to perform tasks that are not required to finish before the response is sent; such as sending emails, or other "heavy" tasks.

See the external documentation for more information.

Included Modules

Defined in:

events/terminate_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]