The Hooks example demonstrates how you can write custom Middleware functions to "hook" into the request lifecycle.
In this case, we're keeping it simple and implement a
mutatingPostResolve hook to inject a custom rocket into the response. This hook allows us to modify the response object before it is sent back to the client. We've got access to the client request, the response and the user, so we're pretty flexible in what we can do with it.