hapi.js - Extending the request with lifecycle events

InstructorMike Frey

Share this video with your friends

Send Tweet

Instead of using middlware, hapi provides a number of points during the lifecycle of a request that you can hook-in to provide additional functionality, called "extension events". This lesson will give you an introduction to using extension events, and show how they can be used to manipulate the request or response in-flight.