-
-
Notifications
You must be signed in to change notification settings - Fork 361
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
Response Callback #309
Comments
Thanks for the issue. In the future please fill out the entire issue template and don't remove sections. This seems like a very niche feature and I'm not sure there would be a widespread advantage to users. We'll leave this issue open for some time and if there is a large upvoting of the request we'll consider adding it. |
Thanks for the reply, I'll pay attention to the template later, yes, the function of the template engine is very small, but I feel it is very meaningful to provide a response callback, and we can do some custom functions based on this callback. |
/cc @shenguotao2015 |
I would like to see this feature aswell, plus having an extra feature can't hurt. |
/cc @justablob Do you want send a PR |
I can't think of a use case but do you need this feature that provides a callback? |
I would like to work on this feature. Can I have a little more details? |
@mitchell-frost Can you provide real use case? |
I'm running into a similar issue as outlined in this SO post. In short, I'm using this indirectly with Angular's |
I used it for the first time, and a lot of it was not very clear, but it was very good, thank you for providing this middleware.
Code
My suggestion is can you add the support of template engine analysis in the middleware, or provide a callback function for us to use? For example, ejs, jade:
middleware.js#85line
The text was updated successfully, but these errors were encountered: