class RateLimitMiddleware implements HTTPMiddleware (View source)

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

HTTPResponse process(HTTPRequest $request, callable $delegate)

Parameters

HTTPRequest $request
callable $delegate

Return Value

HTTPResponse

$this setExtraKey(string $key)

Parameters

string $key

Return Value

$this

string getExtraKey()

Return Value

string

$this setMaxAttempts(int $maxAttempts)

Parameters

int $maxAttempts

Return Value

$this

int getMaxAttempts()

Return Value

int

$this setDecay(int $decay)

Parameters

int $decay

Time in minutes

Return Value

$this

int getDecay()

Return Value

int

$this setRateLimiter(RateLimiter $rateLimiter)

Parameters

RateLimiter $rateLimiter

Return Value

$this

RateLimiter|null getRateLimiter()

Return Value

RateLimiter|null