KuzzleRequest #
The KuzzleRequest class represents a request processed by Kuzzle.
It contains every information used internally by Kuzzle to process the request like the client inputs, but also the response that will be sent back to the client.
This object is received by the controller's actions handler function and it's also the payload of many internal events (e.g API Events)
context #
| Type | Description | get / set |
|---|
RequestContext | KuzzleRequest context (e.g. user, connection, jwt) | get |
deprecations #
| Type | Description | get / set |
|---|
Deprecation[] | Array of deprecation warnings associated to the request (undefined when there is none) | get / set |
error #
| Type | Description | get / set |
|---|
KuzzleError | One of the API Error or null | get |
id #
| Type | Description | get / set |
|---|
string | KuzzleRequest external unique identifier | get / set |
| Type | Description | get / set |
|---|
RequestInput | KuzzleRequest arguments and body | get |
internalId #
| Type | Description | get / set |
|---|
string | KuzzleRequest internal unique identifier | get |
response #
result #
| Type | Description | get / set |
|---|
any | KuzzleRequest result (null until one is set) | get |
status #
| Type | Description | get / set |
|---|
number | KuzzleRequest HTTP status (102 until a result or an error is set). The setter only accepts integers | get / set |
timestamp #
| Type | Description | get / set |
|---|
number | KuzzleRequest timestamp, in milliseconds since Epoch (Date.now() when the request is created, unless the request payload provides one) | get |