The mock HTTP upstream for development of HTTP applications and reverse proxies.

Why use upstream?

Quickstart

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

Features

Usage

``` $ upstream --help

Usage: upstream [OPTIONS]

Options: -p, --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 adds delay until HTTP headers are returned --delay-body adds delay until the HTTP body is returned --size-headers generates a HTTP header with approximately the provided size --size-body generates a HTTP body with approximately the provided size -h, --help Print help -V, --version Print version ```