Skip to content

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)#

View source

Methods#

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

View source

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

Terminates a request/response lifecycle.

Should be called after sending the response to the client.

View source