python-mattermost-driver icon indicating copy to clipboard operation
python-mattermost-driver copied to clipboard

Access or respect server-side rate limit settings

Open unode opened this issue 4 years ago • 2 comments

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?

unode avatar Oct 10 '21 22:10 unode

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

Vaelor avatar Nov 17 '21 17:11 Vaelor

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

romain-dartigues avatar Mar 30 '22 08:03 romain-dartigues