- public class TechFact555 {
- public String getHeader(HttpServletRequest request) {
- String token = request.getHeader("header-key");
- // Validate token string
- return token;
- }
- }
To get value in request, use HttpServletRequest object with exact key.
- NOTE: Header key is case-sensitive.
No comments:
Post a Comment