From 55384697d75559951ede3e3220eae354d4a4ba27 Mon Sep 17 00:00:00 2001 From: Win Date: Thu, 23 May 2024 20:12:03 +0700 Subject: [PATCH] Update README --- README.md | 12 +++++++++++- server | Bin 20832 -> 0 bytes 2 files changed, 11 insertions(+), 1 deletion(-) delete mode 100755 server diff --git a/README.md b/README.md index e354d9f..b428e30 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,17 @@ -# simple-web-server +# Winnie-HTTP Simple HTTP server in C +## Usage +1. Clone repo: `git clone https://git.winscloud.net/winsdominoes/simple-web-server` +2. Build `make` (requires clang) +3. Run `./server` + +## TODO +- File serving +- Config File +- Command Line args + ## Resources - https://bruinsslot.jp/post/simple-http-webserver-in-c/ - https://medium.com/@nipunweerasiri/a-simple-web-server-written-in-c-cf7445002e6 diff --git a/server b/server deleted file mode 100755 index fecc90c216ec86d49f09b38ad5fcdca3804089d1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 20832 zcmeHPdw5&Ll^;pIvTVokBMEtuh$IdPU^xzs6Y@fitwauaVLJ~Xa3f2yts+aVbQL>1 zifL*##(2M^A5fN3aQbz(UAnY}LL1TqObboIcH8jyXrL)g+0t6Ov`u-mp`>VkXCAU7 zr1op~`}&tB8J%-}bIzH^ojWu4&K=+3+PKbaGBFh_Yz-r6s7xSEnJ~0oG9XU2oE78u zQnr9uA?I;Sq&o#cstBje>C`513nqDQR~~+9`UD3WT7j zYENntip!zL(&J}(#X^nuHqAI^@ zVJ9z<)cDIpUFIg4U#{!ml>Jjt*}SYO7-+4nsS5fkgMm=2r?O{xZDnnZBN}!r;Tco8 zC=cpW>o;#>=3X{Jn6f8+G9ooArC z7KzJr8`3>MdCf$efjAv8HIU9lh*J=!AyU4Dh!iFvmT>N`|M2?*YN{Sojsj^`3`*@k zLCWQzvdgfE;OVxbJ~b6FA5jJJLFJ}8itBeLPa=%MOa32q3NHKaKERY$W}w?58~&Xf z_y@r4h?(JW0NMO(&wfRoY-WCXXf`ME7EGj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