KestrunCompressionServiceCollectionExtensions.AddKestrunCompressionOptOut method

Adds Kestrun compression services to the service collection. This replaces the default IResponseCompressionProvider with KestrunResponseCompressionProvider, which respects endpoint metadata to disable compression.

public static IServiceCollection AddKestrunCompressionOptOut(this IServiceCollection services)
parameter description
services The service collection.

Return Value

The service collection.

See Also