SocketsHttpHandler.Expect100ContinueTimeout 属性
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置服务器 HTTP 100 Continue 响应的超时值。
public:
property TimeSpan Expect100ContinueTimeout { TimeSpan get(); void set(TimeSpan value); };
C#
public TimeSpan Expect100ContinueTimeout { get; set; }
member this.Expect100ContinueTimeout : TimeSpan with get, set
Public Property Expect100ContinueTimeout As TimeSpan
等待 HTTP 100 Continue 的时间跨度。 默认值为 1 秒钟。
当请求包含 Expect: 100-continue
标头时,服务器应在客户端发送正文之前响应 HTTP 状态 100 Continue
。
SocketsHttpHandler.Expect100ContinueTimeout 定义服务器响应的 100 Continue
超时。
产品 | 版本 |
---|---|
.NET | Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |