HttpClientHandler.MaxResponseHeadersLength Property

Definition

Gets or sets the maximum length, in kilobytes (1024 bytes), of the response headers. For example, if the value is 64, then 65536 bytes are allowed for the maximum response headers' length.

[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public int MaxResponseHeadersLength { get; set; }
public int MaxResponseHeadersLength { get; set; }

Property Value

The maximum length, in kilobytes (1024 bytes), of the response headers.

Attributes

Applies to

Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.3, 1.4, 1.6, 2.0, 2.1