KestrunResponseCompressionProvider.ShouldCompressResponse method
Determines if the response should be compressed, taking into account endpoint metadata.
public bool ShouldCompressResponse(HttpContext context)
| parameter | description |
|---|---|
| context | The HTTP context. |
Return Value
True if the response should be compressed; otherwise, false.
See Also
- class KestrunResponseCompressionProvider
- namespace Kestrun.Hosting.Compression