I use the url module to parse the url. Then, after I removed koa-bodyparser, it had no effect at all. What exactly does koa-bodyparser do?
Middleware used to parse body, for example, you pass forms, json data or upload files through post, is not easy to obtain in koa. after parsing by koa-bodyparser, this.body can directly obtain data in koa.
Can you look at my repohttps://github.com/zhanfang/koa-react-weixinThere are two things above used in it. The code is rather messy.
PS: XML data cannot be parsed by koa-bodyparse. There is another middleware koa-xml-body.