SocketsHttpHandler.MaxResponseHeadersLength Property

Definition

Gets or sets the maximum length, in kilobytes (1024 bytes), of the response headers.

C#
public int MaxResponseHeadersLength { get; set; }

Property Value

The maximum size of the header portion from the server response, in kilobytes.

Remarks

For example, if the value is 64, then 65,536 bytes are allowed for the maximum response headers' length.

Applies to

Product Versions
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10