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

sql - can we replace full join with union of left and right join? why not? -

javascript - Parallax scrolling and fixed footer code causing width issues -

iOS: Performance of reloading UIImage(name:...) -