Annotation Interface RestClient.Header

Enclosing class:
RestClient

@Target({TYPE,METHOD}) @Repeatable(Headers.class) @Documented public static @interface RestClient.Header
Definition of an outbound header (sent with every request).
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Name of the header, see HeaderNames constants with _STRING.
    Value of the header.
  • Element Details

    • name

      String name
      Name of the header, see HeaderNames constants with _STRING.
      Returns:
      header name
    • value

      String value
      Value of the header.
      Returns:
      header value