ThrottleMiddleware
- Full name:
\Codefy\Framework\Http\Middleware\ThrottleMiddleware
- This class implements:
\Psr\Http\Server\MiddlewareInterface
Properties
configContainer
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