dushujun / basic-http-server

A static file server in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A simple HTTP static file server written in Rust with async hyper.

The source is simple, and commented for easy comprehension.

USAGE:
        basic-http-server [FLAGS] [OPTIONS] [ARGS]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -a, --addr <ADDR>    Sets the IP:PORT combination (default "127.0.0.1:4000")

ARGS:
    ROOT    Sets the root dir (default ".")

Installation and Use

Use cargo install:

$ cargo install basic-http-server
$ basic-http-server

If you prefer to not use cargo install, clone the repo and then cargo run --release -- $DIRECTORY.

License

MIT/Apache-2.0

About

A static file server in Rust


Languages

Language:Rust 100.0%