cancel
Showing results for 
Search instead for 
Did you mean: 

response finish event

calin_crecea
Explorer
0 Kudos

Hello,
I have an express application which is launching cds via cds.serve().
In my code I have a hook which intercepts the rest response before returning to the client and analyzes/logs it.
This is done by registering to the 'finish' event on the Response object:
res.on('finish', async () => { ....... });
My problem is that the 'finish' event is not called for the endpoints odata exposed by the cds service.
Does anyone has an idea about this issue?

Thanks a lot.

Accepted Solutions (0)

Answers (0)