SocketsHttpHandler.MaxResponseHeadersLength Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the maximum length, in kilobytes (1024 bytes), of the response headers.
public:
property int MaxResponseHeadersLength { int get(); void set(int value); };
public int MaxResponseHeadersLength { get; set; }
member this.MaxResponseHeadersLength : int with get, set
Public Property MaxResponseHeadersLength As Integer
The maximum size of the header portion from the server response, in kilobytes.
The value specified is less than or equal to zero.
An operation has already been started on the current instance.
The current instance has been disposed.
For example, if the value is 64, then 65,536 bytes are allowed for the maximum response headers' length.
Product | Versions |
---|---|
.NET | Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: