Skip to content

module Athena::HTTPKernel::Events::SettableResponse #

Represents an event where an AHTTP::Response can be set on self to handle the original AHTTP::Request.

Warning

Once #response= is called, propagation stops; i.e. listeners with lower priority will not be executed.

Direct including types

Athena::HTTPKernel::Events::Exception Athena::HTTPKernel::Events::Request Athena::HTTPKernel::Events::View

Methods#

#response : AHTTP::Response | ::Nil#

The response object, if any.

View source

#response=(response : AHTTP::Response) : Nil#

Sets the response that will be returned for the current AHTTP::Request being handled.

Propagation of self will stop once #response= is called.

View source