-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Epic]: Implement Rate Limiting Middleware in aspnetcore #37384
Comments
Thanks for contacting us. We're moving this issue to the |
Thank you for submitting this for API review. This will be reviewed by @dotnet/aspnet-api-review at the next meeting of the ASP.NET Core API Review group. Please ensure you take a look at the API review process documentation and ensure that:
|
API Review:
namespace Microsoft.AspNetCore.RateLimiting
{
public sealed class RateLimiterOptions
{
public PartitionedRateLimiter<HttpContext> Limiter { get; set; }
public Func<HttpContext, RateLimitLease, Task> OnRejected { get; set; }
public int DefaultRejectionStatusCode { get; set; }
}
public static class RateLimitingApplicationBuilderExtensions
{
public static IApplicationBuilder UseRateLimiter(this IApplicationBuilder app);
public static IApplicationBuilder UseRateLimiter(this IApplicationBuilder app, RateLimitingOptions options);
}
} |
Middleware is implemented. |
API Proposal:
The text was updated successfully, but these errors were encountered: