shane32/Wait For Response

Wait for response code from a URL with timeout

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
urlURL to pollnohttp://localhost/
responseCodeHTTP response code to wait for, or a wildcard pattern like "2xx"no200
timeoutTimeout before giving up in msno30000
intervalInterval between polling in msno200
sleepSleep before initial request in msno0
lookforString to look for in the bodyno""
namedescription
result0 if expected response was received within timeout, otherwise 1