From 5472763fc27d3a84dc44eeef36c9ae1bf9bbdec6 Mon Sep 17 00:00:00 2001 From: David Fowler Date: Sat, 22 Apr 2017 02:52:40 -0700 Subject: [PATCH] Added feature to control http body behavior (#821) * Added feature to control http body behavior - Added a flag to allow synchronous IO --- .../IHttpBodyControlFeature.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/Microsoft.AspNetCore.Http.Features/IHttpBodyControlFeature.cs diff --git a/src/Microsoft.AspNetCore.Http.Features/IHttpBodyControlFeature.cs b/src/Microsoft.AspNetCore.Http.Features/IHttpBodyControlFeature.cs new file mode 100644 index 0000000000..3f61be9788 --- /dev/null +++ b/src/Microsoft.AspNetCore.Http.Features/IHttpBodyControlFeature.cs @@ -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 +{ + /// + /// Controls the IO behavior for the and + /// + public interface IHttpBodyControlFeature + { + /// + /// Gets or sets a value that controls whether synchronous IO is allowed for the and + /// + bool AllowSynchronousIO { get; set; } + } +}