Final Class Yiisoft\Yii\RateLimiter\Policy\LimitPerIp
| Inheritance | Yiisoft\ |
|---|---|
| Implements | Yiisoft\ |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| fingerprint() | Yiisoft\ |
Method Details
| public string fingerprint ( \ | ||
| $request | \ |
|
public function fingerprint(ServerRequestInterface $request): string
{
return sha1(strtolower($request->getMethod() . $request->getUri()->getPath() . $this->getIp($request)));
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.