Package io.micronaut.http.annotation
Annotation Type RequestAttributes
-
@Documented @Retention(RUNTIME) @Target(TYPE) @Inherited public @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
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description RequestAttribute[]
value
This allows you to have multiple @RequestAttribute's set at the class level with Java and Groovy.
-
-
-
Element Detail
-
value
RequestAttribute[] value
This 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:
- {}
-
-