اقرأ باللغة الإنجليزية تحرير

مشاركة عبر


SocketsHttpHandler.Expect100ContinueTimeout Property

Definition

Gets or sets the time-out value for server HTTP 100 Continue response.

C#
public TimeSpan Expect100ContinueTimeout { get; set; }

Property Value

The timespan to wait for the HTTP 100 Continue. The default value is 1 second.

Exceptions

The timeout specified is less than or equal to zero and is not InfiniteTimeSpan

-or-

The timeout specified is greater than MaxValue milliseconds.

An operation has already been started on the current instance.

The current instance has been disposed.

Remarks

When request contain Expect: 100-continue header the server should respond HTTP status 100 Continue before the client sends the body. SocketsHttpHandler.Expect100ContinueTimeout define the timeout for the 100 Continue server response.

Applies to

منتج الإصدارات
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10