protocol_manager.main#

Protocol manager main file.

Attributes#

Functions#

lifespan(app)

Define application lifespan.

custom_http_exception_handler(request, exc)

Get http exception handler.

validation_exception_handler(request, exc)

Get request validation exception handler.

readiness(→ dict)

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.