Skip to content

A tiny go web server that echos what you start it with!

License

Notifications You must be signed in to change notification settings

verifa/http-echo

 
 

Repository files navigation

http-echo

=========

HTTP Echo is a small go web server that serves the contents it was started with as an HTML page.

Install

Homebrew

brew install verifa/tap/http-echo

Docker

docker pull verifa/http-echo

Usage

The default port is 5678, but this is configurable via the -listen flag.

# Using -listen flag
http-echo -listen=:8080 -text="hello world"

# Using ECHO_TEXT env var
ECHO_TEXT="hello world" http-echo -listen=:8080

# Using Docker
docker run -e ECHO_TEXT='hello world!' -p 8080:8080 verifa/http-echo -listen :8080

Then visit http://localhost:8080/ in your browser.

=========

Forked from https://github.com/hashicorp/http-echo

About

A tiny go web server that echos what you start it with!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 91.6%
  • Dockerfile 8.4%