function parseBody(e){const{"content-type":t}=e.headers;if(t.indexOf("multipart/form-data")>-1)return;if(0!==t.indexOf("application/json"))return console.error(`调试服务不支持此请求，content-type: ${t}`),{};let r=Buffer.alloc(0);return new Promise((t=>{e.on("data",(e=>{r=Buffer.concat([r,e])})),e.on("end",(()=>{try{t(JSON.parse(r.toString("utf8")))}catch(e){t({})}}))}))}module.exports={parseBody:parseBody};