SocketsHttpHandler.Expect100ContinueTimeout 属性

定义

获取或设置服务器 HTTP 100 Continue 响应的超时值。

C#
public TimeSpan Expect100ContinueTimeout { get; set; }

属性值

等待 HTTP 100 Continue 的时间跨度。 默认值为 1 秒钟。

注解

当请求包含 Expect: 100-continue 标头时,服务器应在客户端发送正文之前响应 HTTP 状态 100 ContinueSocketsHttpHandler.Expect100ContinueTimeout 定义服务器响应的 100 Continue 超时。

适用于

产品 版本
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9