Health handler

Health Handler

Module realizes healthcheck handler.

class luna_faces.crutches_on_wheels.web.health_handler.HealthCheckHandler(request)[source]

Handler for health check

property app: LunaApplication

Get application :rtype: LunaApplication :returns: running application

property config

Get running application config :returns: running application config

async get()[source]

Check health of service, see spec

Resource is reached by address ‘/healthcheck’

Return type:

HTTPResponse

class luna_faces.crutches_on_wheels.web.health_handler.HealthCheckRedirectHandler(request)[source]

Redirect handler.

property app: LunaApplication

Get application :rtype: LunaApplication :returns: running application

property config

Get running application config :returns: running application config

async get()[source]

Redirect request to the /{API}/{resource}

Return type:

HTTPResponse