Skip to content

Conversation

@kczimm
Copy link
Contributor

@kczimm kczimm commented Nov 5, 2025

When using the backoff::future::retry, we can attempt to parse and use the Retry-After header value.


let retry_after = response
.headers()
.get("retry-after")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@64bit
Copy link
Owner

64bit commented Nov 21, 2025

Alternatively introducing RetryOptions which contains backoff and a header name for "retry-after" could work. If you'd like to tackle it!

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

Successfully merging this pull request may close these issues.

2 participants