KestrunResponseCompressionProvider.GetCompressionProvider method

Gets the compression provider for the given HTTP context, taking into account endpoint metadata.

public ICompressionProvider? GetCompressionProvider(HttpContext context)
parameter description
context The HTTP context.

Return Value

The compression provider, or null if compression is disabled.

See Also