Spaces:
Sleeping
Sleeping
File size: 447 Bytes
26b9faa | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | """
中間件模組
拆分自 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",
]
|