Share via

KestrelServerLimits.MaxRequestBodySize Property


Gets or sets the maximum allowed size of any request body in bytes. When set to null, the maximum request body size is unlimited. This limit has no effect on upgraded connections which are always unlimited. This can be overridden per-request via IHttpMaxRequestBodySizeFeature. Defaults to 30,000,000 bytes, which is approximately 28.6MB.

 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

Applies to