• Transform express request and response to for better handling it will sanitize the request body, headers, params, and query for safety reason, and it will also add request id to the header if it is a new request from outside service

    Parameters

    • req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>

      express request

    • res: Response<any, Record<string, any>>

      express response

    • next: NextFunction

      express next function

    • options: RouteConfigOptions

      route config options

    Returns AdapterHandlerContext

    transformed request and response context

Generated using TypeDoc