コンテンツにスキップ
per page, with , order by , clip by
Results of 1 - 1 of about 1 for decompress (0.001 sec.)
Custom Request and APIRoute class 9414
Custom Request and APIRoute class Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . In some cases, you may want to override the logic used by the Request and APIRout ... t want to skip this section. Use cases Some use cases include: Converting non-JSON request bodies to JSON (e.g. msgpack ). Decompressing gzip-compressed request bodies. Automatically logging all request bodies. Handling custom request body encodings Let's ... see how to make use of a custom Request subclass to decompress gzip requests. And an APIRoute subclass to use that custom request class. Create a custom GzipRequest class Tip This is a ... use the provided GzipMiddleware . First, we create a GzipRequest class, which will overwrite the Request.body() method to decompress the body in the presence of an appropriate header. If there's no gzip in the header, it will not try to decompress the bod ...
https://man.mtool.work/fastapi/0.115/how-to/custom-request-and-route/
PREV 1 NEXT