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

Instance Method Summary

Instance Method Detail

def response : ART::Response | Nil #

The response object, if any.


[View source]
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.


[View source]