protocol_manager.main#
Protocol manager main file.
Attributes#
Functions#
|
Define application lifespan. |
|
Get http exception handler. |
|
Get request validation exception handler. |
|
Get status / health endpoint. |
Module Contents#
- protocol_manager.main.ORIGINS = ['http://localhost:8080', 'https://localhost:8443', 'https://localhost:3000']#
- async protocol_manager.main.lifespan(app: fastapi.FastAPI)#
Define application lifespan.
- protocol_manager.main.app#
- async protocol_manager.main.custom_http_exception_handler(request, exc)#
Get http exception handler.
- async protocol_manager.main.validation_exception_handler(request, exc)#
Get request validation exception handler.
- async protocol_manager.main.readiness() dict#
Get status / health endpoint.