KuzzleRequest Events #
request:onAuthorized #
Arguments | Type | Description |
---|---|---|
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 #
Arguments | Type | Description |
---|---|---|
request | KuzzleRequest | The normalized API request |
Triggered whenever a request execution fails.
This event occurs after error events.
request:onSuccess #
Arguments | Type | Description |
---|---|---|
request | KuzzleRequest | The normalized API request |
Triggered whenever a request execution succeeds.
This event occurs after after events.
request:onUnauthorized #
Arguments | Type | Description |
---|---|---|
request | KuzzleRequest | The normalized API request |
Triggered whenever a request fails authorization checks, and is about to be rejected with a 401
error code.
Edit this page on Github(opens new window)