hapi.js - Using the response object

Mike Frey
InstructorMike Frey

Share this video with your friends

Send Tweet

Think of hapi's reply() function as "what you want to say" and the response object as "how you want to say it". While reply controls the payload sent to the client, the response object will allow you to control how the client interprets the payload by manipulating status code, content type, state and more.