Add IHttpMaxRequestBodySizeFeature.IsReadOnly (#858)

This commit is contained in:
Stephen Halter 2017-06-06 15:27:13 -07:00 committed by GitHub
parent 300d69e644
commit 2176af7edd
1 changed files with 7 additions and 0 deletions

View File

@ -8,6 +8,13 @@ namespace Microsoft.AspNetCore.Http.Features
/// </summary>
public interface IHttpMaxRequestBodySizeFeature
{
/// <summary>
/// Indicates whether <see cref="MaxRequestBodySize"/> is read-only.
/// If true, this could mean that the request body has already been read from
/// or that <see cref="IHttpUpgradeFeature.UpgradeAsync"/> was called.
/// </summary>
bool IsReadOnly { get; }
/// <summary>
/// The maximum allowed size of the current request body in bytes.
/// When set to null, the maximum request body size is unlimited.