Skip to content

struct Athena::Framework::RouteHandler
inherits Struct #

The entry-point into Athena::Framework.

Emits events that handle a given request and returns the resulting ATH::Response.

Constructors#

.new(event_dispatcher : AED::EventDispatcherInterface, request_store : ATH::RequestStore, argument_resolver : ATH::Arguments::ArgumentResolverInterface) #

View source

Methods#

#handle(request : HTTP::Request) : ATH::Response #

View source

#handle(request : ATH::Request) : ATH::Response #

View source

#terminate(request : ATH::Request, response : ATH::Response) : Nil #

Terminates a request/response lifecycle.

Should be called after sending the response to the client.

View source