/tinyweb

Tinyweb, a tiny web server in C

Primary LanguageC

Tinyweb

Origins

Tinyweb came from https://github.com/shenfeng/tiny-web-server repository.

And the current repository is: https://github.com/cyd01/tinyweb

Contents

Tinyweb is a very light HTTP web server written in C. Here are the original features:

  • Basic MIME mapping
  • Very basic directory listing
  • Low resource usage
  • sendfile (Linux only)
  • Support Accept-Ranges: bytes (for in browser MP4 playing)
  • concurrency by pre-fork

And the new features recently added:

  • Default index file
  • 302 redirect for directory
  • Expect: 100-continue
  • DELETE, GET, HEAD, POST and PUT methods
  • Basic Auth for PUT and DELETE method
  • Very light dynamic script integration (scripts are *.sh)
  • Docker image (https://hub.docker.com/r/cyd01/tinyweb/)