class Athena::Routing::Events::Request

Overview

Emitted very early in the request's life-cycle; before the corresponding ART::Route (if any) has been resolved.

This event can be listened on to add information to the request, or return a response before even triggering the router; ART::Listeners::CORS is an example of this.

Included Modules

Defined in:

events/request_event.cr

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

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

response : ART::Response | Nil response, response=(response : ART::Response) : Nil response=