Package io.micronaut.http.annotation
Annotation Interface RequestAttributes
This lets you declare several attributes for a client class and have them always included.
Example usage:
@RequestAttributes({
@RequestAttribute(name = "api-key", value = "my-key-value"),
@RequestAttribute(name = "api-name", value = "my-api-name")
})
- Since:
- 1.0
- Author:
- Ahmed Lafta
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionThis allows you to have multiple @RequestAttribute's set at the class level with Java and Groovy.
-
Element Details
-
value
RequestAttribute[] valueThis allows you to have multiple @RequestAttribute's set at the class level with Java and Groovy. Example usage:@RequestAttributes({ @RequestAttribute(name = "api-key", value = "my-key-value"), @RequestAttribute(name = "api-name", value = "my-api-name") })
- Returns:
- The attributes
- Default:
- {}
-