Module io.helidon.webclient.api
Package io.helidon.webclient.api
Annotation Interface RestClient.ComputedHeader
- Enclosing class:
RestClient
@Target({TYPE,METHOD})
@Documented
@Repeatable(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, seeHeaderNames
constants with_STRING
.
-
Element Details
-
name
String nameName of the header, seeHeaderNames
constants with_STRING
.- Returns:
- header name
-
function
String functionA named producer function. A named service implementingHttp.HeaderFunction
must exist in the registry that will be used to compute the header.- Returns:
- name of a header function service to get header value from
-