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 继续的时间跨度。 默认值为 1 秒钟。

注解

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

适用于