KestrunHttpMiddlewareExtensions class

Provides extension methods for configuring common HTTP middleware in Kestrun.

public static class KestrunHttpMiddlewareExtensions

Public Members

name description
static AddCommonAccessLog(…) Adds Apache-style common access logging using a configured CommonAccessLogOptions instance. (2 methods)
static AddHsts(…) Adds HSTS to the application using the specified HstsOptions. (2 methods)
static AddHttpsRedirection(…) Adds HTTPS redirection to the application using the specified HttpsRedirectionOptions. (2 methods)
static AddResponseCaching(…) Adds response caching to the application. This overload allows you to specify configuration options. (2 methods)
static AddResponseCompression(…) Adds response compression to the application. This overload allows you to specify configuration options. (2 methods)

See Also