Crates.io | upstream |
lib.rs | upstream |
version | 0.1.0 |
source | src |
created_at | 2023-08-15 01:00:55.291761 |
updated_at | 2023-08-15 01:00:55.291761 |
description | The mock HTTP upstream for development of HTTP applications and reverse proxies. |
homepage | https://github.com/austinjones/upstream-rs |
repository | https://github.com/austinjones/upstream-rs |
max_upload_size | |
id | 944657 |
size | 38,141 |
The mock HTTP upstream for development of HTTP applications and reverse proxies.
python -m http.server
From crates.io:
cargo install upstream
From git:
git clone https://github.com/austinjones/upstream-rs.git
cd upstream-rs
cargo install --path .
Then run with:
upstream -p 8080
--all-interfaces
flag$ upstream --help
Usage: upstream [OPTIONS]
Options:
-p, --port <PORT> binds to the specified port [default: 8080]
-a, --all-interfaces binds to all interfaces
-q, --quiet suppresses output of incoming HTTP request data
--delay-headers <MILLIS> adds delay until HTTP headers are returned
--delay-body <MILLIS> adds delay until the HTTP body is returned
--size-headers <BYTES> generates a HTTP header with approximately the provided size
--size-body <BYTES> generates a HTTP body with approximately the provided size
-h, --help Print help
-V, --version Print version