handles "listening" event
updates HttpServer construction