Request Context#
Request Context#
Every request passing through the RequestContextMiddleware will have a custom
RequestContext attached to the current request context state.
Store#
Requests passing through the RequestContextMiddleware will also be stored in the
requestStore until the request is over, when it will be removed from the store in
the EndResponseMiddleware.
You can retrieve a request context using the getRequestContext method with its key.
Each context key is made by generating a uuid (v4), it is then attach on the
ctx.state.requestId.
#typescript