Toggle navigation
Hot Examples
JP
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
検索
Home
Webiny
Component
Rest
Response
RateControl
PHP Class Webiny\Component\Rest\Response\RateControl
The interval is automatically reset after each minute. RateControl requires that you have a Cache defined on your Rest configuration.
Inheritance:
use trait
Webiny\Component\Http\HttpTrait
,
use trait
Webiny\Component\Cache\CacheTrait
,
use trait
Webiny\Component\StdLib\StdLibTrait
ファイルを表示
Open project: Webiny/Framework
Class Usage Examples
Public Methods
Method
Description
isWithinRateLimits
(
RequestBag
$requestBag
,
CallbackResult
$cr
) :
boolean
Checks if user is within rate limits.
Method Details
isWithinRateLimits()
public
static
method
Checks if user is within rate limits.
public
static
isWithinRateLimits
(
RequestBag
$requestBag
,
CallbackResult
$cr
) :
boolean
$requestBag
RequestBag
$cr
CallbackResult
return
boolean