原文地址:http://xinsoft.bokee.com/3968180.html
大象推荐了几个Open Source的Web Server给我。都是由Java开发的。看了看,受益匪浅。
1、NanoHTTPD and Mp3HTTPD
http://elonen.iki.fi/code/nanohttpd/
A free, simple, tiny (1 java file!), nicely embeddable HTTP server in Java.
这个Web Server的源代码仅有一个java文件!对于学习web server原理的人来说,这或许会是一个非常好的例子。
源代码在这里:
http://elonen.iki.fi/code/nanohttpd/NanoHTTPD.java
http://elonen.iki.fi/code/nanohttpd/NanoHTTPD.java.html
2、Tornado HTTP Server
http://tornado.sourceforge.net/
Tornado HTTP Server is a multi-threaded web server written in Java. It aims to be secure, efficient, and portable, and provide a full implementation of HTTP 1.1. Advanced features such as GZip output compression and web-based administration are planned.
这个似乎还不错:)
3、Charles Web Debugging Proxy
http://www.xk72.com/charles/download.php
Charles is an HTTP proxy / HTTP monitor / Reverse Proxy that enables a developer to view all of the HTTP traffic between their machine and the Internet. This includes requests, responses and the HTTP headers (which contain the cookies and caching information). Charles can act as a man-in-the-middle for HTTP/SSL communication, enabling you to debug the content of your HTTPS sessions.