HttpListenerTimeoutManager.HeaderWait 屬性

定義

取得或設定 HttpListener 剖析要求標頭的允許時間。

public:
 property TimeSpan HeaderWait { TimeSpan get(); void set(TimeSpan value); };
public TimeSpan HeaderWait { get; [System.Runtime.Versioning.SupportedOSPlatform("windows")] set; }
public TimeSpan HeaderWait { get; set; }
[<set: System.Runtime.Versioning.SupportedOSPlatform("windows")>]
member this.HeaderWait : TimeSpan with get, set
member this.HeaderWait : TimeSpan with get, set
Public Property HeaderWait As TimeSpan

屬性值

允許 HttpListener 的剖析要求標頭的時間。

屬性

備註

此屬性的預設值為2分鐘。

只有在連線的第一個要求路由傳送至 HttpListener之後,才會強制執行此逾時。

除非剖析標頭,否則系統無法判斷要求相關聯的要求佇列或 URL 群組。 因此, HttpListener 會針對連線上的第一個要求強制執行預設 HeaderWait 定時器。 Keep-Alive 連線上的後續要求會使用此屬性上設定的值。

適用於