Modifed Server api to be more like net/http