透传协议
nim.httpRequestProxy({
path: '/api/v1/custom-endpoint',
method: 2,
header: JSON.stringify({ 'Content-Type': 'application/json' }),
body: JSON.stringify({ key: 'value' }),
done: function(err, data) {
if (err) {
console.log('透传请求失败', err)
} else {
console.log('透传请求成功', data)
}
}
})
服务代理相关 API