nuclear@11: tinyweb - tiny web server library and daemon nuclear@11: ============================================ nuclear@11: nuclear@11: The tinyweb project includes a rudimentary web server in library form nuclear@11: (libtinyweb), and a simple web server daemon (tinywebd) which uses it. nuclear@11: nuclear@11: Author: John Tsiombikas nuclear@11: nuclear@11: I disclaim all copyright to this program, and place it in the public domain. nuclear@13: Feel free to use it any way you like. Mentions and retaining the attribution nuclear@13: headers at the top of the source code would be appreciated, but not required. nuclear@13: nuclear@13: Feel free to send me an email if you find a cool use for this code. nuclear@11: nuclear@11: Download nuclear@11: -------- nuclear@11: Latest release: no releases yet, just grab the source from the repo. nuclear@11: nuclear@11: Code repository: https://github.com/jtsiomb/tinyweb nuclear@11: nuclear@11: Usage nuclear@11: ----- nuclear@11: See ``src/main.c`` as an example on how to use libtinyweb, and read the header nuclear@11: file ``libtinyweb/src/tinyweb.h`` which is very simple, and heavily commented. nuclear@14: nuclear@14: It will serve everything under the current working directory. Default port is nuclear@14: 8080. nuclear@14: nuclear@14: Bugs nuclear@14: ---- nuclear@14: Issues that I intend to fix or improve at some point: nuclear@14: nuclear@14: - Only GET and HEAD HTTP requests are currently implemented. nuclear@14: - Doesn't support partial downloads. nuclear@14: - It's supposed to be cross platform, but it isn't yet (UNIX only). nuclear@14: nuclear@14: Issues that are the way they are by design: nuclear@14: nuclear@14: - Tinywebd is not really a daemon (doesn't release controlling terminal). nuclear@14: - Doesn't scale well to lots of simultaneous clients (to keep it simple).