A fourth (and probably best way in this case) is to register a NewResponse
subscriber. Another global hook is to add a tween. A good hook that allows
certain views to opt-out or opt-in to something is a view deriver. They all
affect different parts of the pipeline [1] but a NewResponse subscriber
Hi,
This question is more of a curious one as I explore different possible
solutions for a problem.
What is the recommended way of adding an X-Myapp-Didum header to *every*
response returned from the server? It looks like there are different ways
to achieve that:
- Change the Response