Свойство | Тип | Описание | |
---|---|---|---|
$handler | Rate limit handler instance. | ||
$router | Router instance. |
Метод | Описание | |
---|---|---|
__construct ( |
Create a new rate limit middleware instance. | |
handle ( Dingo\Api\Http\Request $request, Closure $next ) : mixed | Perform rate limiting before a request is executed. |
Метод | Описание | |
---|---|---|
getHeaders ( ) : array | Get the headers for the response. | |
responseWithHeaders ( |
Send the response with the rate limit headers. |
public __construct ( |
||
$router | ||
$handler | ||
Результат | void |
protected getHeaders ( ) : array | ||
Результат | array |
protected responseWithHeaders ( |
||
$response | ||
Результат |
protected Handler,Dingo\Api\Http\RateLimit $handler | ||
Результат |