Skip to content

module Athena::Routing::Events::SettableResponse #

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

Athena::Routing::Events::Exception Athena::Routing::Events::Request Athena::Routing::Events::View


#response : ART::Response? #

The response object, if any.

View source

#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.

View source