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

リクエスト制限情報の実装 #4838

Open
argxentakato opened this issue May 3, 2019 · 2 comments
Open

リクエスト制限情報の実装 #4838

argxentakato opened this issue May 3, 2019 · 2 comments
Labels
🧩API Issues regarding the interface between the server and the client. ✨Feature This adds/improves/enhances a feature

Comments

@argxentakato
Copy link

現時点で、レートリミットに達したときにどれだけ待てば次のリクエストを送れるかわかりません。

これでは不便なので、何らかの方法でリクエスト制限情報をレスポンスに含めるべきだと思います。

例えば、Twitterでは以下の3つのレスポンスヘッダにリクエスト制限情報が含まれています。

X-Rate-Limit-Limit - 一定期間内でリクエストできる最大回数
X-Rate-Limit-Remaining - 次の期間までにリクエストできる回数
X-Rate-Limit-Reset - 次の期間が来るまでの秒数
@argxentakato argxentakato added the ✨Feature This adds/improves/enhances a feature label May 3, 2019
@syuilo syuilo added the 🧩API Issues regarding the interface between the server and the client. label Jun 21, 2019
@rinsuki
Copy link
Contributor

rinsuki commented Feb 19, 2022

あったほうがよさそう

@KisaragiEffective
Copy link
Collaborator

#13949X-Rate-Limit-Reset については Retry-After として実装済み

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧩API Issues regarding the interface between the server and the client. ✨Feature This adds/improves/enhances a feature
Projects
Development

No branches or pull requests

4 participants