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

Added feature to control http body behavior #821

Merged
merged 2 commits into from
Apr 22, 2017
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
16 changes: 16 additions & 0 deletions src/Microsoft.AspNetCore.Http.Features/IHttpBodyControlFeature.cs
Original file line number Diff line number Diff line change
@@ -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
Copy link
Contributor

@JunTaoLuo JunTaoLuo Apr 20, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about the naming BodyControl. Maybe IHttpBodyIOOptionsFeature, IHttpBodyIOFeature, IHttpBodyIOCapabilitiesFeature?

{
/// <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; }
}
}