ICompressionProvider Interface

Definition

Provides a specific compression implementation to compress HTTP responses.

C#
public interface ICompressionProvider
Derived

Properties

EncodingName

The encoding name used in the 'Accept-Encoding' request header and 'Content-Encoding' response header.

SupportsFlush

Indicates if the given provider supports Flush and FlushAsync. If not, compression may be disabled in some scenarios.

Methods

CreateStream(Stream)

Create a new compression stream.

Applies to

Product Versions
ASP.NET Core 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0