// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; namespace Microsoft.AspNetCore.ResponseCompression { /// /// Options for the HTTP response compression middleware. /// public class ResponseCompressionOptions { /// /// Response Content-Type MIME types to compress. /// public IEnumerable MimeTypes { get; set; } /// /// Indicates if responses over HTTPS connections should be compressed. The default is 'false'. /// Enable compression on HTTPS connections may expose security problems. /// public bool EnableForHttps { get; set; } = false; /// /// The types to use for responses. /// Providers are prioritized based on the order they are added. /// public CompressionProviderCollection Providers { get; } = new CompressionProviderCollection(); } }