Options
All
  • Public
  • Public/Protected
  • All
Menu

服务代理相关 API

Hierarchy

  • PassThroughInterface

Implemented by

Index

Methods

  • 透传协议

    示例

    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)
    }
    }
    })

    Parameters

    Returns void