From b2f8b9a19518da3f62a8128d203aab59daebd83b Mon Sep 17 00:00:00 2001 From: CrispyPin Date: Mon, 27 May 2024 22:17:32 +0200 Subject: [PATCH] add README.md --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..26b8a8f --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +# webserver +Simple http server written from scratch with no library depencencies. + +## features +- list directory contents +- serve `index.html` for a directory that has such a file +- serve `/path/to/.html` when you request `/path/to/`, making urls a bit nicer +- partial file requests so you can watch large video files without needing to load all of it first +- logs requests to stdout + +## usage +``` +webserver [127.0.0.1:12345] [/path/to/site/root] +``` +Both arguments are optional but you must specify the ip if you specify the path. + +The default address is `127.0.0.1:55566` and it will serve the current directory. + +