server code about http server