Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

nestjs get request header in guard

// accessing header field in http request
const request = context.switchToHttp().getRequest();
const headerFieldValue = request.headerField;
 
PREVIOUS NEXT
Tagged: #nestjs #request #header #guard
ADD COMMENT
Topic
Name
7+2 =