Refactoring over HttpServerImp class.