📜  nestjs 在守卫中获取请求标头 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:25.347000             🧑  作者: Mango

代码示例1
// accessing header field in http request
const request = context.switchToHttp().getRequest();
const headerFieldValue = request.headerField;