Chapter 5. Understanding requests and responses
This chapter covers
- Understanding the hapi.js request lifecycle
- Using extension points
- Examining the reply interface in depth
- Looking at the response object
- Dealing with handling and communicating errors
I hope by now you’ve gotten a decent feel for hapi.js. You should have picked up useful, practical skills that you can apply in building your own applications. You also should have a good grasp of the language and terms we use in hapi—things like routes, handlers, requests, responses, and so on.
It should be clear that hapi has a lot going on under the surface. How things work and fit together internally is probably still rather unclear to you. We’ve only scratched the outer surface of ...
Get hapi.js in Action now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.