IResponseCompressionProvider.GetCompressionProvider(HttpContext) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.