SudoSOS Back-end API / internal/helpers / RequestContext
Interface: RequestContext ​
Diagnostic information about the request that is currently being handled.
This is deliberately limited to values that are only used for correlating log lines. Anything that a request handler acts upon should be passed explicitly, since code that runs outside of a request (cron tasks, workers) has no context at all.
Properties ​
actorId? ​
ts
optional actorId?: number;The id of the user whose token was accepted for this request. Absent until the token middleware has validated the token, and on endpoints that do not require one.
method ​
ts
method: string;The HTTP method of the request.
path ​
ts
path: string;The path of the request, without its query string.
requestId ​
ts
requestId: string;Identifier that ties all log lines of a single request together.