Skip to content
Jian-Hong Pan edited this page Jul 26, 2016 · 7 revisions

Micro HTTP Server

It is a really simple HTTP server which implements part of HTTP 1.1 for prototyping.

One of the major purpose is that it can be ported on an embedded system (including micro controller unit level).

For writing Micro HTTP Server, the developer has studied eserv and Tiny HTTPd ..., etc. However, most of them use the thread or fork libraries to fulfill the concurrency requirements. To have an HTTP server on the OS with restricted resource which does not provide thread or fork features, ones may only uses the select function to serve multi clients concurrently. Therefore, Micro HTTP Server is built for the purpose.

Demo

Get the code git clone https://github.com/starnight/MicroHttpServer.git.

Python Version

It will need Python 3.2 or above.

cd py-version
python3 main.py

Open your web browser and access the URL: http://localhost:8000

C Version

It will need make and GCC for building.

cd c-version
make
./microhttpserver

Open your web browser and access the URL: http://localhost:8001

APIs

  • Python Version: [Py API](Py API)

  • C Version: [C API](C API)

Reference

License

Micro HTTP Server's code uses the BSD license, see our LICENSE.md file.

Clone this wiki locally