Skip to content

Core\RateLimit\Decision

The result of one Core\RateLimit::consume or consumeLocally call. isAllowed says whether the call was inside the limit. limit, remaining and retryAfter give the numbers for RateLimit and Retry-After response headers.

Returned by

You get a Core\RateLimit\Decision from these methods:

Members

4 members.

MemberSignature
isAllowedisAllowed(): bool
limitlimit(): uint
remainingremaining(): uint
retryAfterretryAfter(): ?Core\Time\Duration