The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

hapi.js - Using the response object

hapi.js - Using the response object

1:45
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.
Watch this lesson now
Avatar
egghead.io

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.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?