Annotation Interface Http.Produces

Enclosing class:
Http

@Retention(CLASS) @Target(METHOD) @Documented public static @interface Http.Produces
What media type(s) this method produces.

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.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Media types produced by this method.
  • Element Details

    • value

      String[] value
      Media types produced by this method.
      Returns:
      produced media types, such as application/json