Skip to content

Commit 674662d

Browse files
authored
Remove obsolete IHttpBufferingFeature, IHttpSendFileFeature #27529 (#28890)
1 parent 6e25d1c commit 674662d

File tree

4 files changed

+0
-70
lines changed

4 files changed

+0
-70
lines changed

src/Http/Http.Features/src/IHttpBufferingFeature.cs

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/Http/Http.Features/src/IHttpSendFileFeature.cs

Lines changed: 0 additions & 28 deletions
This file was deleted.

src/Http/Http.Features/src/PublicAPI.Shipped.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@ Microsoft.AspNetCore.Http.Features.IFormFeature.ReadFormAsync(System.Threading.C
6161
Microsoft.AspNetCore.Http.Features.IHttpBodyControlFeature
6262
Microsoft.AspNetCore.Http.Features.IHttpBodyControlFeature.AllowSynchronousIO.get -> bool
6363
Microsoft.AspNetCore.Http.Features.IHttpBodyControlFeature.AllowSynchronousIO.set -> void
64-
Microsoft.AspNetCore.Http.Features.IHttpBufferingFeature
65-
Microsoft.AspNetCore.Http.Features.IHttpBufferingFeature.DisableRequestBuffering() -> void
66-
Microsoft.AspNetCore.Http.Features.IHttpBufferingFeature.DisableResponseBuffering() -> void
6764
Microsoft.AspNetCore.Http.Features.IHttpConnectionFeature
6865
Microsoft.AspNetCore.Http.Features.IHttpConnectionFeature.ConnectionId.get -> string!
6966
Microsoft.AspNetCore.Http.Features.IHttpConnectionFeature.ConnectionId.set -> void
@@ -134,8 +131,6 @@ Microsoft.AspNetCore.Http.Features.IHttpResponseFeature.StatusCode.set -> void
134131
Microsoft.AspNetCore.Http.Features.IHttpResponseTrailersFeature
135132
Microsoft.AspNetCore.Http.Features.IHttpResponseTrailersFeature.Trailers.set -> void
136133
Microsoft.AspNetCore.Http.Features.IHttpResponseTrailersFeature.Trailers.get -> Microsoft.AspNetCore.Http.IHeaderDictionary!
137-
Microsoft.AspNetCore.Http.Features.IHttpSendFileFeature
138-
Microsoft.AspNetCore.Http.Features.IHttpSendFileFeature.SendFileAsync(string! path, long offset, long? count, System.Threading.CancellationToken cancellation) -> System.Threading.Tasks.Task!
139134
Microsoft.AspNetCore.Http.Features.IHttpUpgradeFeature
140135
Microsoft.AspNetCore.Http.Features.IHttpUpgradeFeature.IsUpgradableRequest.get -> bool
141136
Microsoft.AspNetCore.Http.Features.IHttpUpgradeFeature.UpgradeAsync() -> System.Threading.Tasks.Task<System.IO.Stream!>!

src/Servers/testassets/ServerComparison.TestSites/StartupResponseCompression.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,6 @@ public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory)
4141
return context.Response.WriteAsync(helloWorldBody);
4242
});
4343
});
44-
/* If we implement DisableResponseBuffering on IISMiddleware
45-
app.Map("/NoBuffer", subApp =>
46-
{
47-
subApp.UseResponseCompression();
48-
subApp.Run(context =>
49-
{
50-
context.Features.Get<IHttpBufferingFeature>().DisableResponseBuffering();
51-
context.Response.ContentType = "text/plain";
52-
context.Response.ContentLength = helloWorldBody.Length;
53-
return context.Response.WriteAsync(helloWorldBody);
54-
});
55-
});
56-
*/
5744
app.Run(context =>
5845
{
5946
context.Response.ContentType = "text/plain";

0 commit comments

Comments
 (0)