Class ResponseRateLimitingHandler

java.lang.Object
io.undertow.server.handlers.ResponseRateLimitingHandler
All Implemented Interfaces:
HttpHandler

public class ResponseRateLimitingHandler extends Object implements HttpHandler
Handler that limits the download rate
Author:
Stuart Douglas
  • Constructor Details

    • ResponseRateLimitingHandler

      public ResponseRateLimitingHandler(HttpHandler next, int bytes, long time, TimeUnit timeUnit)
      A handler that limits the download speed to a set number of bytes/period
      Parameters:
      next - The next handler
      bytes - The number of bytes per time period
      time - The time period
      timeUnit - The units of the time period
  • Method Details