/TinyHttpd

A tiny C httpd

Primary LanguageCMIT LicenseMIT

TinyHttpd

Usage

gcc httpd.c -o httpd

./httpd -h
// usage: httpd [-p <port>] [-d <http serve root directory>]

TODO

  • Support custom port
  • Support GET method
  • Support POST method
  • The common MIME types
  • Directory listings
  • Support access log
  • Use fork mode accept new conntion
  • Support HTTP/1.1