Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onHeaders listner not invoking when a response is about to write headers #100

Open
pg2203 opened this issue May 22, 2019 · 0 comments
Open

Comments

@pg2203
Copy link

pg2203 commented May 22, 2019

We are recording start and end time when the request is served, so we start recording time in postRouting and try to end recording just when a response is about to write headers. For this i am using onHeaders library (https://github.com/jshttp/on-headers) where we can override onHeaders listener, but it looks like it never invokes this listener. I suspect when it reaches to postController the header is already sent. please suggest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant