Skip to content

Http Wait is a simple program that will run until a given http status code is returned from a given URI

Notifications You must be signed in to change notification settings

thetreep/http_wait

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


the Treep
HTTP Wait

A minimal CLI tool that waits for a specific HTTP status code to be returned.

Key FeaturesHow To UseDownload

Features

  • Configurable port, timeout, polling interval, and response code.
  • That's it !

How To Use

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")

Download

You can download the latest installable version of http_wait for Windows, macOS and Linux (ARM builds included).


thetreep.com  ·  GitHub @thetreep

About

Http Wait is a simple program that will run until a given http status code is returned from a given URI

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages