假设请求当中有USER-TOKEN这个请求头
'use strict';
class homeController {
async headGet() {
const { ctx } = this;
const userToken = ctx.get('USER-TOKEN');
}
}
使用USER-TOKEN获取请求头信息
假设请求当中有USER-TOKEN这个请求头
'use strict';
class homeController {
async headGet() {
const { ctx } = this;
const userToken = ctx.get('USER-TOKEN');
}
}
673
1092

被折叠的 条评论
为什么被折叠?