Health handler

Health Handler

Module realizes healthcheck handler.

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

Handler for health check

property app: luna_tasks.crutches_on_wheels.web.application.LunaApplication

Get application :returns: running application

Return type

LunaApplication

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_tasks.crutches_on_wheels.web.health_handler.HealthCheckRedirectHandler(request)[source]

Redirect handler.

property app: luna_tasks.crutches_on_wheels.web.application.LunaApplication

Get application :returns: running application

Return type

LunaApplication

property config

Get running application config :returns: running application config

async get()[source]

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

Return type

HTTPResponse