Light web server using rust, Just like node http-server from example of rust book
rust-light-server [OPTIONS] [PATH]
[PATH] - Server path which contains html files to serve
Option | Description | Default value |
---|---|---|
--port | Port number for server to listen | 7878 |
--gzip / -g | enable gzip compression | |
--help / -h | Displays list of options available |
rust-light-server --port 8089 --gzip c:\demo\webpages\
it will start the server on port 8089 and serve the files from webpages folder web url will be http://127.0.0.1:8089