struct Athena::Routing::RouteHandler
- Athena::Routing::RouteHandler
 - Struct
 - Value
 - Object
 
Overview
The entry-point into Athena::Routing.
Emits events that handle a given request and returns the resulting ART::Response.
Defined in:
route_handler.crConstructors
Instance Method Summary
- #handle(request : HTTP::Request) : ART::Response
 - 
        #terminate(request : HTTP::Request, response : ART::Response) : Nil
        
          
Terminates a request/response lifecycle.
 
Constructor Detail
        
        def self.new(event_dispatcher : AED::EventDispatcherInterface, request_store : ART::RequestStore, argument_resolver : ART::Arguments::ArgumentResolverInterface)
        #
      
      
      Instance Method Detail
        
        def terminate(request : HTTP::Request, response : ART::Response) : Nil
        #
      
      
        Terminates a request/response lifecycle.
Should be called after sending the response to the client.