Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access or respect server-side rate limit settings #98

Open
unode opened this issue Oct 10, 2021 · 2 comments
Open

Access or respect server-side rate limit settings #98

unode opened this issue Oct 10, 2021 · 2 comments

Comments

@unode
Copy link
Contributor

unode commented Oct 10, 2021

Mattermost has an optional rate-limit option that can be enabled by server admins. This feature works by setting X-RateLimit headers in HTTP API responses.
Is there any way to access this information or otherwise configure the driver to respect these limits if rate-limiting is enabled?

@Vaelor
Copy link
Owner

Vaelor commented Nov 17, 2021

I am not sure at the moment, I will have to do some research on this.

@romain-dartigues
Copy link

There is an example in the requests documentation; don't know how to adapt it in httpx though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants