shane32/Wait For Response
Wait for response code from a URL with timeout
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| url | URL to poll | no | http://localhost/ |
| responseCode | HTTP response code to wait for, or a wildcard pattern like "2xx" | no | 200 |
| timeout | Timeout before giving up in ms | no | 30000 |
| interval | Interval between polling in ms | no | 200 |
| sleep | Sleep before initial request in ms | no | 0 |
| lookfor | String to look for in the body | no | "" |
Outputs
| name | description |
|---|---|
| result | 0 if expected response was received within timeout, otherwise 1 |