HttpClientHandler.MaxResponseHeadersLength 属性

定义

获取或设置响应标头的最大长度,以千字节(1024 字节)为单位。Gets or sets the maximum length, in kilobytes (1024 bytes), of the response headers. 例如,如果该值为 64,那么允许的最大响应标头长度为 65536 字节。For example, if the value is 64, then 65536 bytes are allowed for the maximum response headers' length.

public:
 property int MaxResponseHeadersLength { int get(); void set(int value); };
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public int MaxResponseHeadersLength { get; set; }
public int MaxResponseHeadersLength { get; set; }
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
member this.MaxResponseHeadersLength : int with get, set
member this.MaxResponseHeadersLength : int with get, set
Public Property MaxResponseHeadersLength As Integer

属性值

Int32

响应标头的最大长度(kb (1024 字节) )。The maximum length, in kilobytes (1024 bytes), of the response headers.

属性

适用于