KestrelServerLimits.MaxRequestBodySize 屬性

定義

取得或設定任何要求主體的最大允許大小,以位元組為單位。 當設定為 null 時,要求主體大小上限為無限制。 此限制不會影響一律無限制的升級連線。 這可以透過 IHttpMaxRequestBodySizeFeature 覆寫每個要求。 預設為 30,000,000 個位元組,大約是 28.6MB。

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)

屬性值

適用於