Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Commit 714f787

Browse files
committed
Add IHttpMaxRequestBodySizeFeature.CanModify
1 parent 300d69e commit 714f787

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Microsoft.AspNetCore.Http.Features/IHttpMaxRequestBodySizeFeature.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ namespace Microsoft.AspNetCore.Http.Features
88
/// </summary>
99
public interface IHttpMaxRequestBodySizeFeature
1010
{
11+
/// <summary>
12+
/// Whether or not the <see cref="MaxRequestBodySize"/> can be modified.
13+
/// If false, it could indicate that either the request body has already been read from
14+
/// or that <see cref="IHttpUpgradeFeature.UpgradeAsync"/> was called.
15+
/// </summary>
16+
bool CanModify { get; }
17+
1118
/// <summary>
1219
/// The maximum allowed size of the current request body in bytes.
1320
/// When set to null, the maximum request body size is unlimited.

0 commit comments

Comments
 (0)