Annotation Interface Http.Produces
- Enclosing class:
Http
If the method may produce more than one type, the response headers must be crafted by hand. If it produces exactly one type, that type will be set by Helidon on response.
When declared on an endpoint type, the media types are used as defaults for every endpoint method. An annotation declared on a method replaces the endpoint type defaults for that method; an empty method annotation clears them.
When used by Helidon declarative server code on an endpoint method that accepts the server response, generated routing code configures the content type before invoking the method, so it is available to output-stream response handling. For endpoint methods that do not accept the server response, generated code configures the content type after the method returns and before the generated response is sent.
-
Required Element Summary
Required Elements
-
Element Details
-
value
String[] valueMedia types produced by this endpoint or method.- Returns:
- produced media types, such as
application/json
-