Share via


IResponseCompressionProvider.GetCompressionProvider(HttpContext) Method

Definition

Examines the request and selects an acceptable compression provider, if any.

public:
 Microsoft::AspNetCore::ResponseCompression::ICompressionProvider ^ GetCompressionProvider(Microsoft::AspNetCore::Http::HttpContext ^ context);
public Microsoft.AspNetCore.ResponseCompression.ICompressionProvider GetCompressionProvider (Microsoft.AspNetCore.Http.HttpContext context);
public Microsoft.AspNetCore.ResponseCompression.ICompressionProvider? GetCompressionProvider (Microsoft.AspNetCore.Http.HttpContext context);
abstract member GetCompressionProvider : Microsoft.AspNetCore.Http.HttpContext -> Microsoft.AspNetCore.ResponseCompression.ICompressionProvider
Public Function GetCompressionProvider (context As HttpContext) As ICompressionProvider

Parameters

context
HttpContext

The HttpContext.

Returns

A compression provider or null if compression should not be used.

Applies to