In the various life cycle events in hapi, such as authentication, route handlers, route prerequisites, you will see reply as one of the function arguments. This is the reply interface.
Throughout this book and the API documentation, you will see the function reply in two forms—either as
reply() or as
reply.continue()—which have two different purposes.
reply.continue() is generally used to return the control flow back to the framework and continue through the request life cycle, whereas
reply() is generally used to generate the response to be returned to the client. The only exception to this is inside the route prerequisites where
reply() is used, as it assigns a variable to the
reply() can accept two parameters ...