Crates.io | simplewebserver |
lib.rs | simplewebserver |
version | 0.1.2 |
source | src |
created_at | 2021-12-28 00:55:30.299508 |
updated_at | 2022-01-09 23:26:19.523668 |
description | Run a tiny HTTP server from the command line |
homepage | |
repository | https://github.com/L-french/simplewebserver |
max_upload_size | |
id | 503944 |
size | 53,921 |
A convenient, standalone web server in the style of Python's SimpleHTTPServer
.
Warning: Like its Python cousin, simplewebserver is intended for development and local file sharing. It should not be used in production environments.
If you have a functional Rust installation, the simplest way to install simplewebserver is from crates.io:
cargo install simplewebserver
Binaries are available in GitHub Releases. They may be extracted and run directly.
USAGE:
simplewebserver [FLAGS] [OPTIONS] <FILE>...
FLAGS:
-D, --dry-run Print files which would be served and exit
-h, --help Prints help information
-r, --recursive Serve directories recursively
-V, --version Prints version information
-v, --verbose Print additional logging info
OPTIONS:
-a, --address <address> Serve on IP address [default: 127.0.0.1]
-p, --port <port> Bind to a port [default: 8080]
ARGS:
<FILE>... The file(s) to serve