Editare

Partajați prin


HttpWebRequestElement.MaximumResponseHeadersLength Property

Definition

Gets or sets the maximum allowed length of the response headers.

public:
 property int MaximumResponseHeadersLength { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("maximumResponseHeadersLength", DefaultValue=64)]
public int MaximumResponseHeadersLength { get; set; }
[<System.Configuration.ConfigurationProperty("maximumResponseHeadersLength", DefaultValue=64)>]
member this.MaximumResponseHeadersLength : int with get, set
Public Property MaximumResponseHeadersLength As Integer

Property Value

A 32-bit signed integer containing the maximum length in kilobytes (1024 bytes) of the response headers. The default value is 64.

Attributes

Remarks

The length is measured in kilobytes (1024 bytes) and it includes the response status line and the response headers, as well as all extra control characters received as part of the HTTP protocol.

A value of -1 means no limit is imposed on the response headers; a value of 0 means that all requests will fail.

Applies to

See also