Vaelor / python-mattermost-driver

Python Mattermost Driver for APIv4
https://vaelor.github.io/python-mattermost-driver/
MIT License
189 stars 69 forks source link

Access or respect server-side rate limit settings #98

Open unode opened 2 years ago

unode commented 2 years ago

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 commented 2 years ago

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

romain-dartigues commented 2 years ago

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