Annotation Interface RestClient.ComputedHeader
- Enclosing class:
RestClient
@Target({TYPE,METHOD})
@Documented
@Repeatable(RestClient.ComputedHeaders.class)
public static @interface RestClient.ComputedHeader
Definition of an outbound header (sent with every request).
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionA named producer function.Name of the header, seeHeaderNamesconstants with_STRING.
-
Element Details
-
name
-
function
String functionA named producer function. A named service implementingHttp.HeaderFunctionmust exist in the registry that will be used to compute the header.- Returns:
- name of a header function service to get header value from
-