Send Docs Feedback

JavaScript callouts

Making JavaScript callouts

Use the JavaScript Object Model object httpClient to make multiple, parallel, asynchronous HTTP requests to any URL from within custom JavaScript code executing in an API proxy flow.

Here's a basic usage pattern. Instantiate a Request object, assign to it a URL (e.g., to a backend service you wish to call), and call httpClient.send with that request object.

var myRequest = new Request();
myRequest.url = "http://www.example.com";
var exchangeObj = httpClient.send(myRequest);

For details, see the Apigee Edge Javascript object model

 

Help or comments?