echo-http

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2021 License: MIT Imports: 8 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL