========================================
If you want to download prebuilt binary,
you can visit GitHub's release page <https://github.com/wdv4758h/wesers/releases>
_
release arguments.yml CARGO.toml git tag
.. code-block:: sh
$ wesers --help
wesers 0.2.0
Chiu-Hsiang Hsu <wdv4758h@gmail.com>
a simple HTTP server in Rust
USAGE:
wesers [OPTIONS]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
--index <index> auto detect index.html [default: true]
--ip <ip> binding IP [default: 127.0.0.1]
--port <port> binding port [default: 8000]
.. code-block:: sh
$ wesers
Simple HTTP Server running on http://127.0.0.1:8000/
GET http://127.0.0.1:8000/ -> 200 OK (0.110684 ms)
GET http://127.0.0.1:8000/target -> 200 OK (0.043674 ms)
GET http://127.0.0.1:8000/target/release -> 200 OK (0.082394 ms)
GET http://127.0.0.1:8000/target/release/wesers -> 200 OK (5.063098 ms)
This is a simple load testing by Herd <https://github.com/imjacobclark/Herd>
_
(Just a simple test, not indicate a lot)
.. code-block:: sh
# Running both herd and wesers on Intel Core i5-2400 with 4GB RAM
$ ./target/release/herd -t 4 -r 1000 http://127.0.0.1:8000
...
Spawning virtual user 1
...
Spawning virtual user 3
...
I made a total of 4000 requests, the mean response time was: 0.00042591915919911117 seconds.
Features ++++++++++++++++++++
Features ++++++++++++++++++++
Features ++++++++++++++++++++
Features ++++++++++++++++++++
I've only tested on my x86_64 Linux. Other platforms are built by CI. If they don't work properly, please tell me.
rust-everywhere <https://github.com/japaric/rust-everywhere/>
_ for CI integrationclap-rs <https://github.com/kbknapp/clap-rs>
_ for arguments parsingiron <https://github.com/iron/iron>
_ for Rust web frameworkRust Team <https://www.rust-lang.org/team.html>
_wesers is licensed under the AGPL License - see the LICENSE
file for details