Package org.microproxy.extras
Interface ConcurrencyLimiter.Responder
- Enclosing class:
ConcurrencyLimiter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Makes the answer to a refused request;
null sends the default 429.-
Method Summary
Modifier and TypeMethodDescriptionrespond(String key, HttpRequest request, FlowContext flow) Creates the HTTP response for a refused request.
-
Method Details
-
respond
Creates the HTTP response for a refused request.- Parameters:
key- the concurrency group key that exceeded its limitrequest- the request being handledflow- the client connection or exchange context- Returns:
- the rejection response, or
nullfor the default429
-