SocketsHttpHandler.Expect100ContinueTimeout 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定伺服器 HTTP 100 繼續回應的逾時值。
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
屬性值
等待 HTTP 100 的時間跨度 繼續。 預設值為 1 秒。
例外狀況
目前的實例已經開始了操作。
目前的實例已被處理。
備註
當請求包含 Expect: 100-continue 標頭時,伺服器應該在客戶端傳送主體前回應 HTTP 狀態 100 Continue 。
SocketsHttpHandler.Expect100ContinueTimeout 定義伺服器回應的 100 Continue 逾時時間。