ResponseCompressionOptions ResponseCompressionOptions ResponseCompressionOptions Class

Definition

Options for the HTTP response compression middleware.

public class ResponseCompressionOptions
type ResponseCompressionOptions = class
Public Class ResponseCompressionOptions
Inheritance
ResponseCompressionOptionsResponseCompressionOptionsResponseCompressionOptions

Constructors

ResponseCompressionOptions() ResponseCompressionOptions() ResponseCompressionOptions()

Properties

EnableForHttps EnableForHttps EnableForHttps

Indicates if responses over HTTPS connections should be compressed. The default is 'false'. Enabling compression on HTTPS connections may expose security problems.

ExcludedMimeTypes ExcludedMimeTypes ExcludedMimeTypes

Response Content-Type MIME types to not compress.

MimeTypes MimeTypes MimeTypes

Response Content-Type MIME types to compress.

Providers Providers Providers

The ICompressionProvider types to use for responses. Providers are prioritized based on the order they are added.

Applies to