HttpClientHandler.MaxResponseHeadersLength 属性

定义

获取或设置响应标头的最大长度,以千字节(1024 字节)为单位。 例如,如果该值为 64,那么允许的最大响应标头长度为 65536 字节。

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

属性值

响应标头的最大长度(以千字节为单位 (1024 字节) )。

属性

适用于

产品 版本
.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