ResponseCompressionBuilderExtensions.UseResponseCompression 方法

定义

添加用于动态压缩 HTTP 响应的中间件。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseResponseCompression(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ builder);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseResponseCompression (this Microsoft.AspNetCore.Builder.IApplicationBuilder builder);
static member UseResponseCompression : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseResponseCompression (builder As IApplicationBuilder) As IApplicationBuilder

参数

builder
IApplicationBuilder

IApplicationBuilder此方法扩展的实例。

返回

适用于