Annotation Interface Headers


This lets you declare several headers for a client class and have them always included. Example usage:

@Headers({
     @Header(name = "Content-type", value = "application/octet-stream"),
     @Header(name = "Content-length", value = "2048")
 })
 
Author:
rvanderwerf, graemerocher Graeme Rocher
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    This allows you to have multiple @Header's set at the class level with Java and Groovy.
  • Element Details

    • value

      Header[] value
      This allows you to have multiple @Header's set at the class level with Java and Groovy. Example usage:
      
      @Headers({
           @Header(name = "Content-type", value = "application/octet-stream"),
           @Header(name = "Content-length", value = "2048")
       })
       
      Returns:
      The headers
      Default:
      {}