NitroStack Logo
/python
/api
/interceptors

Interceptors API

Protocol: async def intercept(self, context: ExecutionContext, next_fn).

Python
from nitrostack import use_interceptors

@use_interceptors(TimingInterceptor)
async def handler(...):
    ...

Scaffold: nitrostack-py generate interceptor Transform. See Interceptors.