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

Commit 2176af7

Browse files
authored
Add IHttpMaxRequestBodySizeFeature.IsReadOnly (#858)
1 parent 300d69e commit 2176af7

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+
/// Indicates whether <see cref="MaxRequestBodySize"/> is read-only.
13+
/// If true, this could mean that the request body has already been read from
14+
/// or that <see cref="IHttpUpgradeFeature.UpgradeAsync"/> was called.
15+
/// </summary>
16+
bool IsReadOnly { 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)