While reviewing fastify hooks lifecycle, responses need one safe envelope transformation. Which action best addresses the problem?
Answer options
- A. Close it in the shutdown hook
- B. Attach it in onRequest
- C. Authorize in preHandler
- D. Apply it in onSend