RateLimitMiddleware
class RateLimitMiddleware implements HTTPMiddleware (View source)
Methods
Details
HTTPResponse
process(HTTPRequest $request, callable $delegate)
No description
protected string
getKeyFromRequest(HTTPRequest $request)
No description
protected HTTPResponse
getErrorHTTPResponse()
No description
protected
addHeadersToResponse(HTTPResponse $response, RateLimiter $limiter)
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
RateLimiter|null
getRateLimiter()
No description