【文件属性】:
文件名称:brotli-asgi:使用brotli的压缩AGSI中间件
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-10 05:55:42
Python
Brotli-Asgi
BrotliMiddleware将响应压缩添加到ASGI应用程序(Starlette,FastAPI,Quart等)。 它提供了比GZip更快,更密集的压缩,并且可以替代GZipMiddleware附带的GZipMiddleware。
安装
pip install brotli-asgi
例子
星空
from starlette . applications import Starlette
from starlette . responses import JSONResponse
from starlette . routing import Route
from starlette . middleware import Middleware
from brotli_asgi import BrotliMiddleware
async def homepa
【文件预览】:
brotli-asgi-master
----.github()
--------workflows()
----tests.py(4KB)
----brotli_asgi()
--------__init__.py(7KB)
----LICENSE.md(1KB)
----setup.py(1KB)
----README.md(3KB)
----.gitignore(66B)