ResponseCompressionMiddleware 类

定义

启用 HTTP 响应压缩。

public ref class ResponseCompressionMiddleware
public class ResponseCompressionMiddleware
type ResponseCompressionMiddleware = class
Public Class ResponseCompressionMiddleware
继承
ResponseCompressionMiddleware

构造函数

ResponseCompressionMiddleware(RequestDelegate, IResponseCompressionProvider)

初始化响应压缩中间件。

方法

Invoke(HttpContext)

调用中间件。

适用于