Package groovy.http

# Annotation Interface Header

@Incubating @Retention(RUNTIME) @Target({TYPE,METHOD}) @Repeatable(Headers.class) public @interface Header
Declares a default HTTP header. Can be applied to the interface (applies to all methods) or to individual methods.

Since:
  6.0.0

- ## Required Element Summary

  Required Elements
  Modifier and Type
  Required Element
  Description
  `String`
  `name`
  Returns the header name.
  `String`
  `value`
  Returns the header value.

- ## Element Details

  - ### name

    String name
    Returns the header name.
    Returns:
      header name

  - ### value

    String value
    Returns the header value.
    Returns:
      header value