Embeddable haxe/sys web server.
git clone https://github.com/tong/wtri.git
cd wtri/
haxelib dev wtri .
haxe build.hxml -neko wtri.n # NekoVM
haxe build.hxml -hl wtri.hl # HashlinkVM
make # HashlinkC
Usage: wtri [options]
[-host] <name> : Address to bind
[-port] <number> : Port to bind
[-path] <path> : Filesystem root
[--uv] <connections> : Use libuv
[--quiet] : Disable logging to stdout
[--help] : Print this help
new wtri.Server( (req,res) -> {
Sys.println( req.path );
res.end( 'Hello!' );
}).listen( 8080 );
See: Main.hx