Skip to content

struct Athena::Routing::RouteHandler
inherits Struct #

The entry-point into Athena::Routing.

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

Class methods#

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

View source

Methods#

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

View source

#terminate(request : HTTP::Request, response : ART::Response) : Nil #

Terminates a request/response lifecycle.

Should be called after sending the response to the client.

View source