프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 responseWithHeaders ( |
||
$response | ||
리턴 |
protected Handler,Dingo\Api\Http\RateLimit $handler | ||
리턴 |