methods to instantiate an http server