
io.muserver.RateLimitSelector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mu-server Show documentation
Show all versions of mu-server Show documentation
A simple but powerful web server framework
The newest version!
package io.muserver;
/**
* A function that controls how rate limits are applied. See {@link MuServerBuilder#withRateLimiter(RateLimitSelector)}
* for usage details.
*/
public interface RateLimitSelector {
/**
* Selects a rate limit bucket based on the current request.
* @param request An incoming request
* @return A rate limit object, or null to not apply rate limiting to this request.
*/
RateLimit select(MuRequest request);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy