NanoHttpd 2.0.3 发布,轻量级Http服务器
jopen 11年前
NanoHTTPD是一个免费、轻量级的(只有一个Java文件) HTTP服务器,可以很好地嵌入到Java程序中。
- Only one Java file.
- 2 "flavors" - one at "current" standards and one strictly Java 1.1 compatible.
- Released as open source, free software, under a Modified BSD licence.
- No fixed config files, logging, authorization etc. (Implement by yourself if you need them.)
- Supports parameter parsing of GET and POST methods.
- Rudimentary PUT support (added in 1.25).
- Support for HEAD and DELETE requests.
- Supports single and multi-value parameters (w/ a helper method) if needed.
- Supports file upload (since version 1.2, 2010) with minimal memory overhead.
- Never caches anything.
- Doesn't limit bandwidth, request time or simultaneous connections.
- All header names are converted lowercase so they don't vary between browsers/clients.
- Very low memory overhead when processing even the largest of requests.
- Temp file usage and threading model are easily cutomized.
- Persistent connections (Connection "keep-alive") support allowing multiple requests to be served over a single socket connection.
发布说明:Polish for the Web server, and a fix for a bug causing stack traces on Samsung Phones. 'Connection: keep-alive' was implemented and tested against the latest Mozilla Firefox.