(req)
| 56 | } |
| 57 | |
| 58 | function readBody(req) { |
| 59 | return new Promise((resolveBody, reject) => { |
| 60 | const chunks = []; |
| 61 | req.on('data', (chunk) => chunks.push(chunk)); |
| 62 | req.on('end', () => resolveBody(Buffer.concat(chunks))); |
| 63 | req.on('error', reject); |
| 64 | }); |
| 65 | } |
| 66 | |
| 67 | /** |
| 68 | * dist/ ausliefern, /rpc und /api weiterreichen. |
no test coverage detected