项目作者: OrionExplorer
项目描述 :
Fast and portable HTTP server.
高级语言: C
项目地址: git://github.com/OrionExplorer/battery-http-server.git
battery-http-server 
Copyright (C) 2012 - 2020
Fast and portable HTTP server.
Supported HTTP versions
Supported HTTP methods
Supported HTTP response codes
- 200 OK
- 204 No Content
- 206 Partial Content
- 302 Found
- 304 Not Modified
- 400 Bad Request
- 401 Authorization Required
- 403 Forbidden
- 404 Not Found
- 411 Length Required
- 412 Precondition Failed
- 413 Request Entity Too Large
- 414 Request Uri Too Long
- 416 Request Range Not Satisfiable
- 500 Server Error
- 501 Not Implemented
- 503 Service Unavailable
- 504 Not Implemented
Other features
- High performance (tested with Apache Benchmark - http://pastebin.com/zBG7nHbL)
- Make use of epoll() or select()
- Optional: make use of sendfile()
- Advanced control over opened files
- Simple internal cache mechanism
- Multiplatform (Windows/Linux)
- Basic Access Authentication
- Simple configuration
- Single-threaded
- Buffered event log
TODO
Battery HTTP Server configuration file is “build/configuration/battery.conf”.
For performance test please visit http://pastebin.com/zBG7nHbL
Compilation and installation
Linux
Windows
Special thanks to ZoczuS, the bug hunter from http://zoczus.blogspot.com!