1. 首页
  2. 数据库
  3. 其它
  4. koa xml body:用于解析xml请求主体的koa中间件 源码

koa xml body:用于解析xml请求主体的koa中间件 源码

上传者: 2021-02-20 20:17:17上传 ZIP文件 6.81KB 热度 114次
koa-xml-body 解析Koa的XML请求正文 安装 用法 const koa = require ( 'koa' ) const xmlParser = require ( 'koa-xml-body' ) const app = koa ( ) app . use ( xmlParser ( ) ) app . use ( function ( ctx , next ) { // the parsed body will store in this.request.body // if nothing was parsed, body will be undefin
用户评论