Skip to content

Intercept H3 Response Body (Plus Types?) #1392

Answered by Hebilicious
tobychidi asked this question in Q&A
Discussion options

You must be logged in to vote

I think that your only option is a middleware, altough, they run globally before your logic. We do have some features coming that will enable the ability to run code after an event handler has returned, but in the meantime I also added a proposal that could allow you to do that #1396

However, if you need to do this now, you can do it with a custom nitro preset #1373

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@tobychidi
Comment options

@Hebilicious
Comment options

Answer selected by Hebilicious
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants