KestrunHttpMiddlewareExtensions.AddResponseCompression method (1 of 2)
Adds response compression to the application. This overload allows you to specify configuration options.
public static KestrunHost AddResponseCompression(this KestrunHost host,
Action<ResponseCompressionOptions>? cfg = null)
parameter | description |
---|---|
host | The KestrunHost instance to configure. |
cfg | The configuration options for response compression. |
Return Value
The current KestrunHost instance.
See Also
- class KestrunHost
- class KestrunHttpMiddlewareExtensions
- namespace Kestrun.Hosting
KestrunHttpMiddlewareExtensions.AddResponseCompression method (2 of 2)
Adds response compression to the application. This overload allows you to specify configuration options.
public static KestrunHost AddResponseCompression(this KestrunHost host,
ResponseCompressionOptions? options)
parameter | description |
---|---|
host | The KestrunHost instance to configure. |
options | The configuration options for response compression. |
Return Value
The current KestrunHost instance.
See Also
- class KestrunHost
- class KestrunHttpMiddlewareExtensions
- namespace Kestrun.Hosting