skgandikota/WaitForUrl
Poll a URL until it returns the expected HTTP status or body content. Useful for deploy-then-verify pipelines.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| url | The URL to poll. | yes | — |
| expected_status | Expected HTTP status code (e.g. 200). Checked on each poll. | no | 200 |
| expected_body | Substring that must appear in the response body to consider it ready. | no | "" |
| method | HTTP method to use for polling. | no | GET |
| headers | JSON string of headers to include. | no | {} |
| interval | Polling interval in seconds. | no | 5 |
| timeout | Maximum time to wait in seconds before failing. | no | 120 |
| follow_redirect | Whether to follow redirects (true/false). | no | true |
Outputs
| name | description |
|---|---|
| status | The final HTTP status code. |
| body | The final response body. |
| time_elapsed | Total time elapsed in seconds until success or timeout. |
| attempts | Number of polling attempts made. |
| success | Whether the expected condition was met (true/false). |