A Java HTTP Server

后端 未结 10 2025
轮回少年
轮回少年 2021-01-03 08:59

I want to implement a Java HTTP server locally, I mean the server computer would be in my control. I\'m expecting not more than 20 clients to send requests to it. I was wond

10条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-03 09:00

    Perhaps look at the list of 26 open source web servers at http://java-source.net/open-source/web-servers.

    http://java.sun.com/developer/technicalArticles/Networking/Webserver/WebServercode.html is actual code in a single file implementing a multi threaded webserver. For your requirements, such as they are, this should suffice.

    http://java.sun.com/developer/technicalArticles/Networking/Webserver/ is an analysis of the code.

提交回复
热议问题