Condividi tramite


ResponseCompressionProvider.GetCompressionProvider(HttpContext) Metodo

Definizione

Esamina la richiesta e seleziona un provider di compressione accettabile, se presente.

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

Parametri

context
HttpContext

Oggetto HttpContext.

Restituisce

Provider di compressione o Null se la compressione non deve essere utilizzata.

Implementazioni

Si applica a