Annotation Interface RequestHeader


@Retention(RUNTIME) @Target(PARAMETER) public @interface RequestHeader
Annotation used to indicate that a method parameter should be bound to a specific HTTP request header.

Usage Example:

 
 @RestController
 public class MyRestController implements BringServlet {

      @PostMapping(path = "/resource")
      public void resourceHeaders(@RequestHeader("Authorization") String authToken) {
          // Your implementation logic here
      }
    }
  
 
Since:
1.0
Author:
Blyzhnytsia Team
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • value

      String value
      Default:
      ""