httpGet
Make a synchronous GET request.
js
httpGet(url, headers?)Arguments
| Argument | Type | Meaning |
|---|---|---|
url | string | HTTP(S) URL. |
headers | object | Optional request headers. |
Returns
Response text or null; same behavior as httpRequest.
Example
js
console.log(httpGet("https://example.com"));