Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

namespace Microsoft.AspNetCore.Http.Features
{
/// <summary>
/// Feature to inspect and modify the maximum request body size for a single request.
/// </summary>
public interface IHttpMaxRequestBodySizeFeature
{
/// <summary>
/// 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.
/// </summary>
/// <remarks>
/// Defaults to the server's global max request body size limit.
/// </remarks>
long? MaxRequestBodySize { get; set; }
}
}