Annotation Type Headers


  • @Documented
    @Retention(RUNTIME)
    @Target({TYPE,METHOD})
    @Inherited
    public @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")
     })
     
    • Optional Element Summary

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

      • 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:
        {}