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

MSC4041 - Add Retry-After header notice. #1737

Merged
merged 9 commits into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelogs/client_server/newsfragments/1737.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Specify that the `Retry-After` header may be used to rate-limit a client.
Half-Shot marked this conversation as resolved.
Show resolved Hide resolved
3 changes: 3 additions & 0 deletions content/client-server-api/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2540,6 +2540,9 @@ return a standard error response of the form:
The `retry_after_ms` key SHOULD be included to tell the client how long
they have to wait in milliseconds before they can try again.

The `Retry-After` HTTP header MAY be specified by the server. When this header
Half-Shot marked this conversation as resolved.
Show resolved Hide resolved
richvdh marked this conversation as resolved.
Show resolved Hide resolved
is set, it SHOULD be preferred by clients over the `retry_after_ms` value.
richvdh marked this conversation as resolved.
Show resolved Hide resolved
richvdh marked this conversation as resolved.
Show resolved Hide resolved

## Modules

Modules are parts of the Client-Server API which are not universal to
Expand Down
Loading