/MiniHTTPServer

Mini HTTP server with TCP sockets (C# TcpListener), demonstrating key concepts and ideas.

Primary LanguageC#MIT LicenseMIT

Mini HTTP Server

Based on PracticeBareboneHTTPServer, this minimal HTTP server intends to build a feature-complete HTTP(s) server with minimal dependencies for the purpose of conceptual demonstration. ASP.Net core and Kestrel are good but they are too bulky for simple stuff, e.g. StaticWebpagesServer. We intend to make everything compilation to ATO.

As it turns out, getting started is very easy, and wandering to mild distance is not too hard.

TODO

  • Add publishing script; Done, see commit.
  • Make sure replies can be understood by browser and rendered as HTML; Done, see commit.
  • Static file hosting
  • Make a YouTube video: How to Write Your Own HTTP Server
  • HTTPs support
  • Preliminary (embedded) scripting (e.g. Lua)

References and Excerpts

Quick references:

Technical readings: