与 nlapiRequestURL() 等效的 SuiteScript 2.0 是什么?

What is the SuiteScript 2.0 equivalent to nlapiRequestURL()?

有人知道 SuiteScript 2.0 的等价物吗?

nlapiRequestURL(url, postdata, headers, httpMethod)

httphttps 模块等同于 nlapiRequestURL()

HTTP 简单示例

var response = http.get({
    url: 'http://www.google.com',
    headers: headers
});

var response = https.post({
    url: 'http://www.google.com',
    body: myPostDataObj,
    headers: headers
});

HTTPS 示例

 var response = https.get({
     url: url,
     headers: headers
 });