Savarese.Org

BareHTTP Java Web Server


About BareHTTP

Gear icon

The BareHTTP library implements a stripped down Java HTTP server able to satisfy only HTTP/0.9, 1.0, and 1.1 GET requests and HTTP/1.0 and 1.1 HEAD requests. It is suitable for embedded use in unit tests that require access to resources via HTTP. Also, it is convenient to use as a stripped down HTML documentation server.

The code is an expanded and updated version of an example program that appeared in "Build Your Own Web Server," Savarese, D., Java Pro 5, 7 (July 2001), 104-109.

License

BareHTTP is released under the Apache License 2.0.

Download

VersionCombined Source/BinariesLicenseChangesAPI DocumentationUnit Test DocumentationTest Code Coverage Report
1.0.1 barehttp-1.0.1.tar.gz LICENSE CHANGES BareHTTP 1.0.1 API BareHTTP 1.0.1 Unit Test API BareHTTP 1.0.1 Test Code Coverage

Previous Releases
VersionSourceLicense
1.0.0 barehttp-1.0.0.tar.gz LICENSE

Additional Resources

ResourceLink
IETF RFC 2616 Hypertext Transfer Protocol -- HTTP/1.1
Java Pro July 2001 Build Your Own Web Server