Really simple, small HTTP server. Designed to act as a primitive HTTP server on my android devices.

phoenix 9d86c53b47 Added CI picture 2 weeks ago
android fc30f03988 Small updates 2 years ago
bin ee9797f31a Daemon mode implemented 4 years ago
.gitignore e73817ad1a v0.4 commit 3 years ago
.travis.yml c1450c2ba4 Added simple travis script 2 weeks ago
CREDITS.txt be26c2f2ec Kickoff 4 years ago
LICENSE b02e1d9b67 Change to MIT license 5 months ago
Makefile e73817ad1a v0.4 commit 3 years ago
README.md 9d86c53b47 Added CI picture 2 weeks ago
nanoHttp.c 5e713666a5 Minor changes 5 months ago
nanoHttp.h e73817ad1a v0.4 commit 3 years ago

README.md

nanoHttp

Build Status

Really simple, small HTTP server. Designed to act as a primitive HTTP server on my android devices.

For Android-Instructions, visit the Wiki

Binaries

Some binaries can be found in the bin/ folder. If you need Android binaries, please keep in mind to use the right platform. You may need to compile the sources by your own!

CROSS-Compile for Android

This procedure has been tested on my Cyanogenmod-11.0 Android Tablet. Compiled with arm-linux-androideabi-gcc (You will need a working Android NDK toolchain)

Compile for Android with

make android

Make sure, the Android-NDK toolchain is installed and available as arm-linux-androideabi-gcc, otherwise modify the Makefile: Replace CC with CC=arm-linux-androideabi-gcc (see Makefile)

and make sure -static is set in CC_FLAGS (in the Makefile)

For detailed Install instructions see the Wiki or checkout the Android-INSTALL file in the android/ folder

Multi-Threading

Since 0.2 nanoHttp supports POSIX-threads. Each request is forked into a new thread if desired to do so.

You can disable this feature by removing the DEFINE _NANOHTTP_THREADING in nanoHttp.h. Since Android NDK supports POSIX-threads, this feature is Android-compatible.

Inspiration and original source

This project is build on the original source from sanos