refine the http server code and server context code

refine the http server code and server context code