(method, requestPath, body, options = {})
| 1838 | } |
| 1839 | |
| 1840 | async function httpJson(method, requestPath, body, options = {}) { |
| 1841 | const buffer = await httpBuffer(method, requestPath, body, options); |
| 1842 | return JSON.parse(buffer.toString("utf8")); |
| 1843 | } |
| 1844 | |
| 1845 | async function retryHttpJson(method, requestPath, body, label, options = {}) { |
| 1846 | const attempts = options.attempts ?? 3; |
no test coverage detected