insistence
6 months ago
2 changed files with 9 additions and 0 deletions
@ -0,0 +1,6 @@ |
|||
from fastapi import FastAPI |
|||
from starlette.middleware.gzip import GZipMiddleware |
|||
|
|||
|
|||
def add_gzip_middleware(app: FastAPI): |
|||
app.add_middleware(GZipMiddleware, minimum_size=1000, compresslevel=9) |
Loading…
Reference in new issue