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

feat(api): parse Retry-After header as float #450

Closed
wants to merge 1 commit into from

Conversation

ayn2op
Copy link
Contributor

@ayn2op ayn2op commented Sep 19, 2024

Closes #153

@ayn2op ayn2op closed this Sep 19, 2024
@ayn2op ayn2op deleted the parse-retry-after-float branch September 19, 2024 11:23
@diamondburned
Copy link
Owner

What's wrong with this PR?

@ayn2op
Copy link
Contributor Author

ayn2op commented Sep 19, 2024

What's wrong with this PR?

According to the documentation, the float value is in the response body (the retry_after field), not the Retry-After response header.

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.

Gateway/API: v2: Millisecond accurate Retry-After by reading the JSON body
2 participants