Package io.muserver.rest
Annotation Type ResponseHeader
-
@Target(METHOD) @Retention(RUNTIME) public @interface ResponseHeaderDescribes an HTTP Header that is returned by a rest method.
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.StringnameThe header name.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleandeprecatedMarks this header as deprecated to indicate that this header should no longer be used by clients.java.lang.StringdescriptionA brief description of the header.java.lang.StringexampleAn example of a value that will be returned
-
-
-
-
description
java.lang.String description
A brief description of the header. This could contain examples of use. CommonMark syntax MAY be used for rich text representation.- Returns:
- description
- Default:
- ""
-
-