Header type Response header Forbidden header name no 句法 代码语言:javascript 复制 Retry-After:<http-date>Retry-After:<delay-seconds> 指令 <http-date> 之后重试的日期。有关DateHTTP 日期格式的更多详细信息,请参阅标头。<delay-seconds> 一个非负十进制整数,表示接收到响应后的延迟秒数。
Retry-Afteris a lesser known HTTP response header. Let me quote relevant part ofRFC 2616 (HTTP 1.1 spec): 14.37 Retry-After TheRetry-Afterresponse-header field can be used with a503(Service Unavailable) response to indicate how long the service is expected to be unavailable to the requesting ...
When you have been limited, use theRetry-Afterresponse header to slow down. The value of theRetry-Afterheader will always be an integer, representing the number of seconds you should wait before making requests again. For example,Retry-After: 30means you should wait 30 seconds before sending ...
指定Retry-After HTTP 標頭的索引編號。 C# 複製 public const int HeaderRetryAfter = 25; 欄位值 Value = 25 Int32 備註 .NET Framework會將索引編號指派給每個標準 HTTP 標頭類型,以用於 GetKnownRequestHeader 和SendKnownResponseHeader 方法。 適用於 產品版本 .NET Framework 1.1, 2.0, 3.0, 3.5, ...
获取或设置一个值,该值指示是否对重试延迟使用 Retry-After 标头。 C# 复制 public bool ShouldRetryAfterHeader { get; set; } 属性值 Boolean 默认为 true。 注解 如果 属性设置为 true ,则生成器将根据标头规则解决延迟 Retry-After ,否则它将返回 null ,重试策略延迟将根据配置的选项生成延迟...
=200{err=fmt.Errorf("HTTP %d: %s",resp.StatusCode,string(body))ifresp.StatusCode==http.StatusTooManyRequests{// check Retry-After header if it contains seconds to wait for the next retryifretryAfter,e:=strconv.ParseInt(resp.Header.Get("Retry-After"),10,32);e==nil{// the server ...
取得或設定 HTTP 回應的 Retry-After 標頭值。 C# 複製 public System.Net.Http.Headers.RetryConditionHeaderValue? RetryAfter { get; set; } 屬性值 RetryConditionHeaderValue HTTP 回應的 Retry-After 標頭值。 適用於 產品版本 .NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0,...
On behalf of @Cherish98 (originally posted here) I did this I was trying to download lots of files with curl. Due to rate limit on the server side, I enabled the --retry option so that curl retries when the server returns HTTP 429 Too Ma...
[jsr:]@hugoalh/http-header-retry-after[@{Tag}] NPM: [npm:]@hugoalh/http-header-retry-after[@{Tag}] [!NOTE] For usage of remote resources, it is recommended to import the entire module with the main pathmod.ts, however it is also able to import part of the module with sub path...
public HttpDateOrDeltaHeaderValue RetryAfter { get; set; } 属性值 HttpDateOrDeltaHeaderValue 对象,表示 HTTP 响应上的 Retry-After HTTP 标头的值。 null 值表示标头不存在。 适用于 产品版本 WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 1...