Package io.quarkus.vertx.web
Annotation Type Header
-
@Retention(RUNTIME) @Target(PARAMETER) public @interface Header
Identifies a route method parameter that should be injected with a value returned fromHttpServerRequest.getHeader(String)
.The parameter type must be
String
,java.util.Optional<String>
orjava.util.List<String>
, otherwise the build fails.- See Also:
HttpServerRequest.getHeader(String)
-
-
Field Summary
Fields Modifier and Type Fields Description static String
ELEMENT_NAME
Constant value forvalue()
indicating that the annotated element's name should be used as-is.
-
-
-
Element Detail
-
value
String value
The name of the header. By default, the element's name is used as-is.- Returns:
- the name of the header
- Default:
- "<<element name>>"
-
-