echo-http - Echo http service
Responds with json-formatted echo of the incoming request and with a predefined message.
Can be install directly (go get github.com/umputun/echo-http) or as a multi-arch docker container ghcr.io/umputun/echo-http
http http 127.0.0.1:8080/some/test
{
"headers": [
"Accept-Encoding:gzip, deflate",
"Accept:*/*",
"Connection:keep-alive",
"User-Agent:HTTPie/2.4.0"
],
"host": "127.0.0.1:8080",
"message": "echo",
"remote_addr": "127.0.0.1:49821",
"request": "GET /some/test"
}
Application Options:
-l, --listen= listen on host:port (default: 0.0.0.0:8080) [$LISTEN]
-m, --message= response message (default: echo) [$MESSAGE]
Help Options:
-h, --help Show this help message