Retry-After Header 的格式?
Format of Retry-After Header?
在 Dropbox 的 Core API best practices 中有一个声明:
"Apps that hit the rate limits will receive a 503 error which uses the Retry-After header to indicate exactly when it's okay to start making requests again."
This answer references the Retry-After
protocol 允许两种格式:
Retry-After: Fri, 31 Dec 1999 23:59:59 GMT
Retry-After: 120
有人知道 Dropbox 使用哪种格式吗?
是后者,其中的值是应用在再次尝试之前应该等待的秒数。
在 Dropbox 的 Core API best practices 中有一个声明:
"Apps that hit the rate limits will receive a 503 error which uses the Retry-After header to indicate exactly when it's okay to start making requests again."
This answer references the Retry-After
protocol 允许两种格式:
Retry-After: Fri, 31 Dec 1999 23:59:59 GMT
Retry-After: 120
有人知道 Dropbox 使用哪种格式吗?
是后者,其中的值是应用在再次尝试之前应该等待的秒数。