GET

Use http.ping to have a simplified way to check if url is responding with 200 on GET request. if (!http.ping("/weather")) { http.post("/cluster-master", [restart: "weather"]) } http.ping("/weather") http.ping("/weather", ["query-param": "value"]) http.ping("/weather", ["query-param": "value"], http.header(["X-flag": "test"]))