如何自制一个简单的web server
参考文章:https://l-webx.gitbooks.io/how_tomcat_works/content/chapter/the_httpserver_class.html 这篇文章介绍了web服务器如何使用Socket, ServerSocket, Request, Response等基础类与客户端建立连接,如何根据url读取静态文件,或者加载Servlet实现类。之后介绍了tomcat4中connector的实现,同时介绍了4种container。 https://www.logicmonitor.com/blog/what-is-apache-tomcat-server-and-how-does-it-work 这篇文章介绍了从web请求到web响应的总体流程,tomcat服务的优点和缺点。 代码仓库:https://gitee.com/jiajinliu/analysis_web_server.git