Skip to content


HTTP(s) destination class that holds metadata (e.g., host, port, useSSL). The destination can be retrieved from the database with $.net.http.readDestination.


API Changes

Destinations in XSK make use of SAP BTP Destination service (see xshttpdest). As such, destinations no longer live in the file tree, so the first parameter of readDestination representing the package is no longer needed. If provided, it will be ignored. Lookup for destinations happens based on the name.

Sample Usage

let http = $.net.http;

Read service.xshttpdest inside the Demo package that contains:
let dest = http.readDestination("Demo", "service");
// Check if the file has been read properly
$.response.setBody("Host: " + + " Path Prefix: " + dest.pathPrefix);