Added feature to control http body behavior (#821)

* Added feature to control http body behavior
- Added a flag to allow synchronous IO
This commit is contained in:
David Fowler 2017-04-22 02:52:40 -07:00 committed by GitHub
parent 4566cf9fdb
commit 5472763fc2
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
// 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>
/// Controls the IO behavior for the <see cref="IHttpRequestFeature.Body"/> and <see cref="IHttpResponseFeature.Body"/>
/// </summary>
public interface IHttpBodyControlFeature
{
/// <summary>
/// Gets or sets a value that controls whether synchronous IO is allowed for the <see cref="IHttpRequestFeature.Body"/> and <see cref="IHttpResponseFeature.Body"/>
/// </summary>
bool AllowSynchronousIO { get; set; }
}
}