mirror of https://github.com/tiangolo/fastapi.git
- Introduced `route_class` and `router_class` parameters to allow custom route and router classes. - Updated `FastAPI` initialization to use the provided `router_class` and `route_class`. - Modified webhook initialization to respect the custom router class. - Added test cases to validate: - Custom `route_class` and `router_class` usage. - Route naming consistency. - Presence of `X-Response-Time` header in responses. This enhances FastAPI’s flexibility, allowing users to customize route handling and routing behavior. |
||
|---|---|---|
| .. | ||
| tutorial001.py | ||