Listens on for a single HTTP request receiving a file path, looks for the requested file, and serves it.
Uses OS's socket API for network transfer.
Hardcoded to listen on 0.0.0.0:8080
assuming zig
is installed
- Compile and run the program
zig build run
. - Send HTTP request with file path to URL
wget 0.0.0.0:8080/index.html