Minimal implementation of a static file server as per the HTTP/1.1 protocol
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Clean up debugging prints Oct 12, 2018
LICENSE Rename files and add Makefile Nov 21, 2017
Makefile Rename files and add Makefile Nov 21, 2017
README.md Update README Nov 21, 2017
serve.c Clean up debugging prints Oct 12, 2018

README.md

forthebadge

micro-http

A tiny static file server written in C, with functionality similar to Python's SimpleHTTPServer. Presents a file listing for directories. Handles multiple requests asynchronously.

  • Build by running make or make serve.

  • Add serve to your $PATH.

  • Run serve 9000 to serve the current working directory. Visit localhost:9000.