A small CLI that echoes any post requests it receives.
Echor is on crates.io and can be installed using.
cargo install echor
echor will listen for requests to localhost:7000/post
by default.
A different path and port can be specified using --path
and --port
args as shown in the following example:
echor --path /mypath --port 8080
This will listen for requests on localhost:8080/mypath
.
- Take a list of paths to listen on
- Accept different http methods
- Dockerfile