module Athena::Routing::Events::SettableResponse
Overview
Represents an event where an ART::Response
can be set on self
to handle the original HTTP::Request
.
NOTE Once #response=
is called, propagation stops. Or in other words, listeners with lower priority will not be executed.
Direct including types
Defined in:
events/settable_response.crInstance Method Summary
-
#response : ART::Response | Nil
The response object, if any.
-
#response=(response : ART::Response) : Nil
Sets the response that will be returned for the current
HTTP::Request
being handled.
Instance Method Detail
def response=(response : ART::Response) : Nil
#
Sets the response that will be returned for the current HTTP::Request
being handled.
Propagation of self
will stop once #response=
is called.