Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

interface Microsoft.​AspNetCore.​Http.​Features.​IHttpMaxRequestBodySizeFeature

Assembly: Microsoft.AspNetCore.Http.Features

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

Properties

bool
IsReadOnly
Indicates whether <see cref="P:Microsoft.AspNetCore.Http.Features.IHttpMaxRequestBodySizeFeature.MaxRequestBodySize" /> is read-only. If true, this could mean that the request body has already been read from or that <see cref="M:Microsoft.AspNetCore.Http.Features.IHttpUpgradeFeature.UpgradeAsync" /> was called.
long?
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.
Remarks Defaults to the server's global max request body size limit.