$ npm i egg-xml-body --save
// {app_root}/config/plugin.js
exports.xmlBody = {
enable: true,
package: 'egg-xml-body',
};
egg-xml-body support all the configurations in koa-xml-body. and with default configurations below:
- encoding: 'utf8'
- limit: '1mb'
- key: 'body'
- xmlOptions: {}, see the xml2js options for detail
// {app_root}/config/config.default.js
exports.xmlBody = {
};
see config/config.default.js for more detail.
Please open an issue here.