#request #http-request #request-body #raw #stdout #tcp #return

app ech

Take in a TCP / HTTP request and return the raw request in the body, and log to stdout. No dependencies

4 releases

0.0.4 Dec 4, 2021
0.0.3 Nov 9, 2021
0.0.2 Nov 9, 2021
0.0.1 Nov 9, 2021

#27 in #request-body

MIT license

4KB

ech

Quickstart

Download and install ech from crates.io

cargo install ech

Runs ech on port 8000

ech 8000

Choose a random available port to run on

ech

Use

Simply returns any request back to the caller with a HTTP/1.1 200 OK response code and logs it to stdout, giving the full raw TCP stream as text.

Helpful when debugging a poorly documented application making unknown requests, point it to the port ech is running on and see exactly what is being sent out.

No runtime deps