RateLimitingMiddleware¶
-
class
OC\AppFramework\Middleware\Security\
RateLimitingMiddleware
¶ - Class RateLimitingMiddleware is the middleware responsible for implementing theratelimiting in Nextcloud.It parses annotations such as:
Source: lib/private/AppFramework/Middleware/Security/RateLimitingMiddleware.php#52 Parent: OCP\AppFramework\Middleware
Properties¶
Methods¶
-
public
OC\AppFramework\Middleware\Security\RateLimitingMiddleware::
__construct
($request, $userSession, $reflector, $limiter)¶ Source: lib/private/AppFramework/Middleware/Security/RateLimitingMiddleware.php#68
Parameters: - $request (
OCP\IRequest
) - $userSession (
OCP\IUserSession
) - $reflector (
OC\AppFramework\Utility\ControllerMethodReflector
) - $limiter (
OC\Security\RateLimiting\Limiter
)
- $request (
-
public
OC\AppFramework\Middleware\Security\RateLimitingMiddleware::
beforeController
($controller, $methodName)¶ -
Source: lib/private/AppFramework/Middleware/Security/RateLimitingMiddleware.php#82 Throws: \OC\Security\RateLimiting\Exception\RateLimitExceededException
-
public
OC\AppFramework\Middleware\Security\RateLimitingMiddleware::
afterException
($controller, $methodName, $exception)¶ -
Source: lib/private/AppFramework/Middleware/Security/RateLimitingMiddleware.php#110