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

Commit 5472763

Browse files
authored
Added feature to control http body behavior (#821)
* Added feature to control http body behavior - Added a flag to allow synchronous IO
1 parent 4566cf9 commit 5472763

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Copyright (c) .NET Foundation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3+
4+
namespace Microsoft.AspNetCore.Http.Features
5+
{
6+
/// <summary>
7+
/// Controls the IO behavior for the <see cref="IHttpRequestFeature.Body"/> and <see cref="IHttpResponseFeature.Body"/>
8+
/// </summary>
9+
public interface IHttpBodyControlFeature
10+
{
11+
/// <summary>
12+
/// Gets or sets a value that controls whether synchronous IO is allowed for the <see cref="IHttpRequestFeature.Body"/> and <see cref="IHttpResponseFeature.Body"/>
13+
/// </summary>
14+
bool AllowSynchronousIO { get; set; }
15+
}
16+
}

0 commit comments

Comments
 (0)