Attention

This is the documentation for HARP Proxy, actually published as an early preview. Both the software and documentation are a work in progress, and although we already use it on various production servers, they may contain inaccuracies, typographical errors, huge mistakes and empty pages. We work hard to eradicate all mistakes and implement stuff, but it is a long and tedious process. We appreciate your patience and understanding. Of course, any help will be greatly appreciated.

harp.config.factories.kernel_factory

class KernelFactory[source]

Bases: object

AsyncEventDispatcherType

alias of LoggingAsyncEventDispatcher

ContainerType

alias of Container

KernelType

alias of ASGIKernel

__init__(configuration)[source]
Parameters:

configuration (Config)

async build()[source]
build_container(dispatcher)[source]

Factory method responsible for the service injection container creation, registering initial services.

Parameters:

dispatcher (IAsyncEventDispatcher)

Return type:

Container

build_event_dispatcher()[source]

Factory method responsible for the event dispatcher creation, binding initial/generic listeners.

Return type:

IAsyncEventDispatcher

async ok_controller()[source]
async on_health_request(event)[source]
Parameters:

event (RequestEvent)