Commit Graph

13 Commits

Author SHA1 Message Date
Guillaume Gardey
b6fa460254 Fix formatting 2020-12-23 10:04:52 +00:00
Guillaume Gardey
755bf44e12 Fix copy/paste issue in test 2020-12-23 09:48:50 +00:00
Guillaume Gardey
acde458c45 fix: Address issue with decorator
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.
2020-12-23 09:48:50 +00:00
Reuben Thomas-Davis
07e0e20be7 🎨 remove useless comments 2020-10-01 20:11:19 +01:00
Reuben Thomas-Davis
32205c5b25 🎨 format with black 2020-10-01 19:13:50 +01:00
Reuben Thomas-Davis
3753de763c Merge branch 'master' of https://github.com/laurentS/slowapi
# Conflicts:
#	slowapi/extension.py
merge with master conforming to new docstring style
2020-10-01 19:11:30 +01:00
Reuben Thomas-Davis
b8fa36ea83 add override_defaults parameter and fix merge test 2020-10-01 19:05:13 +01:00
Laurent Savaete
b82536a669 Fix black and mypy errors 2020-09-28 00:53:41 +01:00
Thomas LEVEIL
a66a728e50 TESTS : cover cases of missing request: Request parameter or misuse 2020-09-27 20:20:16 +02:00
Reuben Thomas-Davis
272ae50d05 add default limit merging test 2020-09-13 19:33:31 +01:00
Reuben Thomas-Davis
cd79c35a39 improve exempt decorator test 2020-07-11 21:56:44 +01:00
Reuben Thomas-Davis
6580bb0624 add middleware and exempt decorator 2020-07-04 03:16:46 +01:00
Laurent Savaete
9880ff7625 First version 2020-02-21 13:51:35 +00:00