request

Since Kuzzle v1.0.0

Global events triggered on requests execution.


request:onAuthorized

Since Kuzzle v1.0.0

Event type: Pipe

Payload: a Request object

Triggered whenever a request passed authorization checks and is ready to be processed.
This event occurs before any <controller>:before<Action> event.


request:onError

Since Kuzzle v1.0.0

Event type: Pipe

Payload: a Request object

Triggered whenever a request execution fails.
This event occurs after any <controller>:error<Action> event.


request:onSuccess

Since Kuzzle v1.0.0

Event type: Pipe

Payload: a Request object

Triggered whenever a request execution succeeds.
This event occurs after any <controller>:after<Action> event.


request:onUnauthorized

Since Kuzzle v1.0.0

Event type: Pipe

Payload: a Request object

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