Core
Framework v2.x
2

KuzzleRequest Events #

request:onAuthorized #

ArgumentsTypeDescription
request
KuzzleRequest
The normalized API request

Triggered whenever a request passes authorization checks and is ready to be processed.

This event occurs before before events.

request:onError #

ArgumentsTypeDescription
request
KuzzleRequest
The normalized API request

Triggered whenever a request execution fails.

This event occurs after error events.

request:onSuccess #

ArgumentsTypeDescription
request
KuzzleRequest
The normalized API request

Triggered whenever a request execution succeeds.

This event occurs after after events.

request:onUnauthorized #

ArgumentsTypeDescription
request
KuzzleRequest
The normalized API request

Triggered whenever a request fails authorization checks, and is about to be rejected with a 401 error code.