A minimal CLI tool that waits for a specific HTTP status code to be returned.
Key Features • How To Use • Download •
- Configurable port, timeout, polling interval, and response code.
- That's it !
You can either install it via the go cli, or download it from the releases
# Install directly with go get
$ go get github.com/thetreep/http_wait
# Check out the built-in doc!
$ http_wait -h
Usage of http_wait:
--i int alias to interval (default 1000)
--interval int Polling interval, in milliseconds. (default 1000)
--p int alias to port (default 80)
--port int Port to use. (default 80)
--rc int alias to response-code (default 200)
--response-code int Response code to wait for. (default 200)
--t int alias to timeout (default 10000)
--timeout int Timeout before returning a non 0 exit code, in milliseconds. (default 10000)
--u string alias to uri (default "http://localhost")
--uri string URI, with protocol and no port. (default "http://localhost")
You can download the latest installable version of http_wait for Windows, macOS and Linux (ARM builds included).
thetreep.com · GitHub @thetreep