Skip to content

Conversation

@pdspicer
Copy link

@pdspicer pdspicer commented Mar 5, 2018

This is useful when encountering a rate-limit error. If headers are passed back, retry-after can be used to delay for the appropriate amount of time before attempting a follow-up call.

…from certain error responses, i.e. the "Retry-After" header returned from rate_limit errors
@mkosowsk
Copy link

@maccman any update on this PR? It would tidy up my code a bit with not a huge change 👍

@davidlumley
Copy link
Contributor

Will make sure we review this today 👍

@davidlumley
Copy link
Contributor

We talked about it internally and think this definitely makes sense as a quality of life improvement!

It'd be great if we could add a spec to make sure they're being passed through in a consistent manner. Would you mind adding one @pdspicer and I can then go ahead and merge?

@davidlumley
Copy link
Contributor

Hey @pdspicer just a bump — if you could add specs that'd be wonderful! If not, I'll circle round and add some when I have time 👍

Thanks!

@davidlumley davidlumley removed their request for review August 14, 2018 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants