Package: groovy.http

## [Java] Annotation Type Header

- groovy.http.Header

-     @Incubating
      @Retention(RetentionPolicy.RUNTIME)
      @Target({ElementType.TYPE, ElementType.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

- - ### Element Summary

    Required Element Summary
    Type | Name and Description
    --- | ---
    `String` | `name` Returns the header name.
    `String` | `value` Returns the header value.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Element Detail

    - #### public String name

      Returns the header name.

      Returns:
        header name

    - #### public String value

      Returns the header value.

      Returns:
        header value