nodejs+koa在header里面添加header信息

参考:https://koa.bootcss.com/ 

 

ctx.append('resultCode', '0000');
ctx.append('resultMessage', 'success');

打印ctx,对象,就看到response中的header已经有值了

posted @ 2018-12-12 15:55  江山一族  阅读(4275)  评论(0编辑  收藏  举报