const Hapi = require( 'hapi' );
const Log = require( './methods/log' );

const port = process.env.PPORT || process.env.pport || 8000;

const server = new Hapi.Server();
server.connection( {
    port: port
} );

server.register( require( 'inert' ), ( err ) => {
    if ( err ) throw err;
} );

server.start( ( err ) => {

    if ( err ) throw err;
    Log( 'HAPI server listening on', server.info.uri + '\n', server.info );

} );

module.exports = server;


server.route( {
    path: '/_healthCheck',
    method: '*',
    handler: ( req, res ) => {
        res( "I'm alive @ " + os.hostname() );
    }
} );

@@ -282,24 +282,205 @@
  err;%0A%7D );%0A%0A
+server.ext( 'onRequest', function ( request, reply ) %7B%0A    return reply.continue()%0A        .header( 'X-PoweredBy', 'Poetry' )%0A        .header( 'X-MicroServ', os.hostname() );%0A%7D );%0A%0A
 server.start

Add headers