SocketsHttpHandler.Expect100ContinueTimeout 屬性

定義

取得或設定伺服器 HTTP 100 Continue 回應的逾時值。

public:
 property TimeSpan Expect100ContinueTimeout { TimeSpan get(); void set(TimeSpan value); };
public TimeSpan Expect100ContinueTimeout { get; set; }
member this.Expect100ContinueTimeout : TimeSpan with get, set
Public Property Expect100ContinueTimeout As TimeSpan

屬性值

TimeSpan

等候 HTTP 100 Continue 的時間範圍。 預設值為 1 秒。

備註

當要求包含 Expect: 100-continue 標頭時,伺服器應該在用戶端傳送本文之前回應 HTTP 狀態 100 ContinueSocketsHttpHandler.Expect100ContinueTimeout 定義伺服器回應的 100 Continue 逾時。

適用於