Spaces:
Sleeping
Sleeping
Download middleware/__init__.py from LawrenceBai/Bloom_Ware: direct link, hf CLI and curl.
- Browser
- Download file 447 Bytes
-
https://huggingface.co/spaces/LawrenceBai/Bloom_Ware/resolve/main/middleware/__init__.py
- Command line
-
hf download hf://spaces/LawrenceBai/Bloom_Ware/middleware/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/LawrenceBai/Bloom_Ware/resolve/main/middleware/__init__.py
447 Bytes
| """ | |
| 中間件模組 | |
| 拆分自 app.py,提高可維護性 | |
| """ | |
| from .csp import CSPMiddleware | |
| from .rate_limit import RateLimitMiddleware, rate_limiter | |
| from .exception_handler import ExceptionHandlerMiddleware, RequestLoggingMiddleware | |
| from .compression import GzipMiddleware | |
| __all__ = [ | |
| "CSPMiddleware", | |
| "RateLimitMiddleware", | |
| "rate_limiter", | |
| "ExceptionHandlerMiddleware", | |
| "RequestLoggingMiddleware", | |
| "GzipMiddleware", | |
| ] | |