Как зарегистрировать необработанный HTTP-запрос/ответ в Python FastAPI?Python

Программы на Python
Гость
Как зарегистрировать необработанный HTTP-запрос/ответ в Python FastAPI?

Сообщение Гость »


We are writing a web service using Python FastAPI that is going to be hosted in Kubernetes. For auditing purposes, we need to save the raw JSON body of the request/response for specific routes. The body size of both request and response JSON is about 1MB, and preferably, this should not impact the response time. How can we do that?


Источник: https://stackoverflow.com/questions/696 ... on-fastapi

Вернуться в «Python»