mirror of
https://github.com/laurentS/slowapi.git
synced 2026-03-13 09:10:20 +08:00
The value returned by an endpoint may not be an instance or subclass of `Response`, in this case FastAPI builds the actual Response at an upper level in the middleware stack. This patch allows the decorator to inspect the endpoint to retrieve the associated `Response` to allow headers to be injected.