Share via


IHttpMaxRequestBodySizeFeature.MaxRequestBodySize Property

Definition

The maximum allowed size of the current request body in bytes. When set to null, the maximum request body size is unlimited. This cannot be modified after the reading the request body has started. This limit does not affect upgraded connections which are always unlimited.

public:
 property Nullable<long> MaxRequestBodySize { Nullable<long> get(); void set(Nullable<long> value); };
public long? MaxRequestBodySize { get; set; }
member this.MaxRequestBodySize : Nullable<int64> with get, set
Public Property MaxRequestBodySize As Nullable(Of Long)

Property Value

Remarks

Defaults to the server's global max request body size limit.

Applies to