https://github.com/banyango/rust-simplehttp
A simple Http server for serving local static files
https://github.com/banyango/rust-simplehttp
Last synced: over 1 year ago
JSON representation
A simple Http server for serving local static files
- Host: GitHub
- URL: https://github.com/banyango/rust-simplehttp
- Owner: Banyango
- Created: 2019-01-29T23:52:18.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-30T20:37:05.000Z (over 7 years ago)
- Last Synced: 2025-02-12T09:52:42.464Z (over 1 year ago)
- Language: Rust
- Size: 32.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Rust Simple webserver
Rust-SimpleHTTP | [Website](http://www.banyango.com/rust-simplehttp/) | [](https://travis-ci.org/Banyango/rust-simplehttp)
I was inspired by SimpleHTTP server in python to write up a simple static file server in Rust.
This is currently WIP so there's lots missing. But it's capable of listening on a port and serving up simple static content to a browser.
to build run ```cargo run```
```
usage:
-p [PORT] : Defaults to listening on port 3000 but you can specify another
port to listen on.
-v : Verbose mode flag, prints extra debug info about request/responses and such.
-h : Hot reload mode. Will reload your browser page based on file changes
in the server dir. Uses a websocket on port 30012
Server will listen on localhost:3000 by default.
```