serve
is a simple single-threaded HTTP file server. It takes no arguments, which makes it easy to use after installation. It's a simple tool for local web development. It's useful when you want to send requests to other servers.
Customize the following in the file main.rs
- Port: 8080
- Preferred public directory: "public" otherwise "."
- Content types
- More if you want to change it