Package io.micronaut.http.annotation
Annotation Interface Headers
This lets you declare several headers for a client class and have them always included.
Example usage:
@Headers({
@Header(name = "Content-type", value = "application/octet-stream"),
@Header(name = "Content-length", value = "2048")
})
- Author:
- rvanderwerf, graemerocher Graeme Rocher
-
Optional Element Summary
-
Element Details
-
value
Header[] valueThis allows you to have multiple @Header's set at the class level with Java and Groovy. Example usage:@Headers({ @Header(name = "Content-type", value = "application/octet-stream"), @Header(name = "Content-length", value = "2048") })
- Returns:
- The headers
- Default:
- {}
-