koa2设置头

设置响应头:

ctx.set(‘Content-Type’, ‘application/zip’)

添加请求头:

ctx.append(‘userName’,‘111111’);

你可能感兴趣的:(vue,koa2设置头)