$http
The $http
service is the built-in JAICP HTTP client.
It allows bot scripts to execute HTTP requests and exchange data with external systems.
info
You can also execute HTTP requests from the script using the HttpRequest
tag,
while the J‑Graph visual editor provides the HTTP request block.
The built-in $http
service is not available in the ECMAScript 6 runtime.
Instead, you should use a library like Axios, Ky, or another similar solution.
Methods
Sending HTTP requests
Method | What it does |
---|---|
query | Executes an HTTP request. |
get | Executes an HTTP GET request. |
post | Executes an HTTP POST request. |
put | Executes an HTTP PUT request. |
delete | Executes an HTTP DELETE request. |
config | Configures the default HTTP client settings. |
Checking URL availability
Method | What it does |
---|---|
check | Checks whether an HTTP request to one of several external URLs returns 200 OK. |
checkUrls | Checks whether HTTP requests to several external URLs return 200 OK. |