Skip to content

ThrottleMiddleware

Properties

configContainer

protected \Qubus\Config\ConfigContainer $configContainer

rateLimiter

protected \Codefy\Framework\Http\Throttle\RateLimiter $rateLimiter

Methods

__construct

public __construct(\Qubus\Config\ConfigContainer $configContainer, \Codefy\Framework\Http\Throttle\RateLimiter $rateLimiter): mixed

Parameters:

Parameter Type Description
$configContainer \Qubus\Config\ConfigContainer
$rateLimiter \Codefy\Framework\Http\Throttle\RateLimiter

process

public process(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Server\RequestHandlerInterface $handler): \Psr\Http\Message\ResponseInterface

Parameters:

Parameter Type Description
$request \Psr\Http\Message\ServerRequestInterface
$handler \Psr\Http\Server\RequestHandlerInterface

Throws:



Automatically generated on 2025-10-13