node.js - How to change handler function before request complete in Hapi.js? -


i want change handler function before request complete in hapi.js example:

server.route({     method: 'get',     path: '/error',     handler: function(req, reply) {         reply('hello !');     } }); 

how change handler function , reply other string 'hello change' before request complete.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

c# SetCompatibleTextRenderingDefault must be called before the first -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -