KestrunHttpMiddlewareExtensions class
Provides extension methods for configuring common HTTP middleware in Kestrun.
public static class KestrunHttpMiddlewareExtensions
Public Members
name | description |
---|---|
static AddAntiforgery(…) | Adds antiforgery protection to the application. This overload allows you to specify configuration options. (2 methods) |
static AddCors(…) | Registers a named CORS policy that was already composed with a CorsPolicyBuilder and applies that policy in the pipeline. (2 methods) |
static AddCorsAllowAll(…) | Adds a CORS policy named “AllowAll” that allows any origin, method, and header. |
static AddRateLimiter(…) | Adds rate limiting to the application using the specified RateLimiterOptions. (2 methods) |
static AddResponseCompression(…) | Adds response compression to the application. This overload allows you to specify configuration options. (2 methods) |
See Also
- namespace Kestrun.Hosting