CorrelationMiddleware
Αυτό το περιεχόμενο δεν είναι ακόμη διαθέσιμο στη γλώσσα σου.
Defined in: packages/nestjs/src/correlation.ts:23
Takes the correlation id of every request from its header, or creates one,
runs the request with it so the pipelines it starts take it, and echoes it
on the response: httpCorrelation() of @cqrs-ddd/pipeline-correlation as
a NestJS middleware.
Example
Section titled “Example”export class AppModule implements NestModule { configure(consumer: MiddlewareConsumer) { consumer.apply(CorrelationMiddleware).forRoutes('*'); }}Implements
Section titled “Implements”NestMiddleware
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new CorrelationMiddleware():
CorrelationMiddleware
Returns
Section titled “Returns”CorrelationMiddleware
Methods
Section titled “Methods”use(
request,response,next):void
Defined in: packages/nestjs/src/correlation.ts:26
Parameters
Section titled “Parameters”request
Section titled “request”IncomingMessage
response
Section titled “response”ServerResponse
() => void
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”NestMiddleware.use