class RateLimitMiddleware implements HTTPMiddleware

Methods

process(HTTPRequest $request, callable $delegate)

No description

$this
setExtraKey(string $key)

No description

string
getExtraKey()

No description

$this
setMaxAttempts(int $maxAttempts)

No description

int
getMaxAttempts()

No description

$this
setDecay(int $decay)

No description

int
getDecay()

No description

$this
setRateLimiter(RateLimiter $rateLimiter)

No description

getRateLimiter()

No description

Details

at line 39
HTTPResponse process(HTTPRequest $request, callable $delegate)

Parameters

HTTPRequest $request
callable $delegate

Return Value

HTTPResponse

at line 101
$this setExtraKey(string $key)

Parameters

string $key

Return Value

$this

at line 110
string getExtraKey()

Return Value

string

at line 119
$this setMaxAttempts(int $maxAttempts)

Parameters

int $maxAttempts

Return Value

$this

at line 128
int getMaxAttempts()

Return Value

int

at line 137
$this setDecay(int $decay)

Parameters

int $decay Time in minutes

Return Value

$this

at line 146
int getDecay()

Return Value

int

at line 155
$this setRateLimiter(RateLimiter $rateLimiter)

Parameters

RateLimiter $rateLimiter

Return Value

$this

at line 164
RateLimiter|null getRateLimiter()

Return Value

RateLimiter|null