struct Athena::HTTPKernel::HTTPKernel
inherits Struct
#
The entry-point into Athena::HTTPKernel.
Emits events that handle a given request and returns the resulting AHTTP::Response.
Constructors#
.new(event_dispatcher : AED::EventDispatcherInterface, request_store : AHTTP::RequestStore, argument_resolver : AHK::Controller::ArgumentResolverInterface, action_resolver : AHK::ActionResolverInterface)#
Methods#
#terminate(request : AHTTP::Request, response : AHTTP::Response) : Nil#
Terminates a request/response lifecycle.
Should be called after sending the response to the client.