-
Notifications
You must be signed in to change notification settings - Fork 3
class net.http.Destination
aihanrashidov edited this page Aug 1, 2022
·
2 revisions
HTTP(s) destination that holds metadata, for example: host, port, useSSL. The destination can be retrieved from the database with $.net.http.readDestination.
- SAP Help
https://help.sap.com/doc/3de842783af24336b6305a3c0223a369/2.0.03/en-US/$.net.http.Destination.html
- Module
https://github.com/SAP/xsk/tree/main/modules/api/api-xsjs/src/main/resources/xsk/http
- Sample usage:
let http = $.net.http;
let response_prev = require('http/v4/response');
/*
Read service.xshttpdest inside the Demo package that contains:
host=https://services.odata.org;
pathPrefix=/V4/Northwind/Northwind.svc/;
*/
let dest = http.readDestination("Demo", "service");
// Check if the file has been read properly
response_prev.println("Host: " +dest.host+ " Path Prefix: " +dest.pathPrefix);
- Issues
- Unit Tests
- Integration Tests ❌
✅ - Feature implemented and working as supposed.
❌ - Feature not implemented yet.