在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:thomseddon/koa-body-parser开源软件地址:https://github.com/thomseddon/koa-body-parser开源编程语言:JavaScript 96.2%开源软件介绍:https://github.com/koajs/bodyparserThis project has been depreciated in favour of:koa-body-parserParse the request body in koa like ya' used to in express Installation
Options
Examplevar bodyParser = require('koa-body-parser');
var koa = require('koa');
var app = koa();
app.use(bodyParser());
app.use(function *() {
this.body = this.request.body; // Echo request back
this.status = 200;
});
app.listen(3000); LicenseMIT |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论