(proxyPath, hubPath, body, timeoutMs)
| 147 | // proxyPath is the path relative to proxy root (e.g. '/atp/order'). |
| 148 | // hubPath is the path relative to hub root (e.g. '/a2a/atp/order'). |
| 149 | function _post(proxyPath, hubPath, body, timeoutMs) { |
| 150 | if (_isProxyMode() && getProxyUrl()) { |
| 151 | return _proxyRequest('POST', proxyPath, body, timeoutMs); |
| 152 | } |
| 153 | return _hubPost(hubPath, body, timeoutMs); |
| 154 | } |
| 155 | |
| 156 | function _get(proxyPath, hubPath, timeoutMs) { |
| 157 | if (_isProxyMode() && getProxyUrl()) { |
no test coverage detected