Share via


ResponseCompressionProvider.GetCompressionProvider(HttpContext) Method

Definition

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

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

Parameters

context
HttpContext

The HttpContext.

Returns

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

Implements

Applies to