最好能把npm中的翻译一下,或者把代码注释一下什么意思,各位大佬们,初学nodejs帮求解!
body是指http请求返回的消息的消息主体
参考
https://www.npmjs.com/package/body
太长了,挑重点吧。
body simply parses the request body and returns it in the callback. jsonBody and formBody call JSON.parse and querystring.parse respectively on the body.
body简单地解析请求体,并在回调中返回它。 jsonBody和formBody分别在body上调用JSON.parse和querystring.parse。
anyBody will detect the content-type of the request and use the appropiate body method.
anyBody将检测请求的内容类型并使用适当的主体方法。
这个api 怎么测试一下啊