StaticFileOptions.HttpsCompression 属性

定义

指示响应压缩中间件可用时,是否应为 HTTPS 请求压缩文件。 默认值是 Compress

public:
 property Microsoft::AspNetCore::Http::Features::HttpsCompressionMode HttpsCompression { Microsoft::AspNetCore::Http::Features::HttpsCompressionMode get(); void set(Microsoft::AspNetCore::Http::Features::HttpsCompressionMode value); };
public Microsoft.AspNetCore.Http.Features.HttpsCompressionMode HttpsCompression { get; set; }
member this.HttpsCompression : Microsoft.AspNetCore.Http.Features.HttpsCompressionMode with get, set
Public Property HttpsCompression As HttpsCompressionMode

属性值

注解

对 HTTPS 请求启用对远程可操作内容的压缩可能会暴露出安全问题。

适用于