Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

IHttpMaxRequestBodySizeFeature Interface

Definition

Namespace:
Microsoft.AspNetCore.Http.Features
Assembly:
Microsoft.AspNetCore.Http.Features.dll
Package:
Microsoft.AspNetCore.App.Ref v10.0.0
Package:
Microsoft.AspNetCore.App.Ref v11.0.0-preview.4.26230.115
Package:
Microsoft.AspNetCore.Http.Features v2.0.0
Package:
Microsoft.AspNetCore.Http.Features v2.1.0
Package:
Microsoft.AspNetCore.Http.Features v2.2.0
Package:
Microsoft.AspNetCore.Http.Features v3.0.3
Package:
Microsoft.AspNetCore.Http.Features v3.1.18
Package:
Microsoft.AspNetCore.Http.Features v5.0.9
Package:
Microsoft.AspNetCore.App.Ref v6.0.36
Package:
Microsoft.AspNetCore.App.Ref v7.0.5
Package:
Microsoft.AspNetCore.App.Ref v8.0.19
Package:
Microsoft.AspNetCore.App.Ref v9.0.8
Source:
IHttpMaxRequestBodySizeFeature.cs

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.

Feature to inspect and modify the maximum request body size for a single request.

public interface class IHttpMaxRequestBodySizeFeature
public interface IHttpMaxRequestBodySizeFeature
type IHttpMaxRequestBodySizeFeature = interface
Public Interface IHttpMaxRequestBodySizeFeature

Properties

Name Description
IsReadOnly

Indicates whether MaxRequestBodySize is read-only. If true, this could mean that the request body has already been read from or that UpgradeAsync() was called.

MaxRequestBodySize

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.

Applies to


Feedback

Was this page helpful?