You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When applying @method_decorator(ratelimit(key='ip', rate='1/m', method='GET'), name='get') to an entire class, there is a bit of confusion I have about the inclusion of the HTTP method.
What happens if one were to leave it off? I think the documentation can make this a little clearer by either adding a second application of the decorator for POST or perhaps indicate if it will then handle all HTTP methods.
Additionally, if the name kwarg is not supplied, what happens then as well?
Thanks for the great software!
I would be happy to edit the docs to whatever the answer ends up being.
The text was updated successfully, but these errors were encountered:
When applying
@method_decorator(ratelimit(key='ip', rate='1/m', method='GET'), name='get')
to an entire class, there is a bit of confusion I have about the inclusion of the HTTP method.What happens if one were to leave it off? I think the documentation can make this a little clearer by either adding a second application of the decorator for POST or perhaps indicate if it will then handle all HTTP methods.
Additionally, if the
name
kwarg is not supplied, what happens then as well?Thanks for the great software!
I would be happy to edit the docs to whatever the answer ends up being.
The text was updated successfully, but these errors were encountered: