struct Athena::Routing::RouteHandler

Overview

The entry-point into Athena::Routing.

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

Defined in:

route_handler.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

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

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