共用方式為


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這個方法擴充的實例。

傳回

適用於