Module io.jooby

Annotation Interface HEAD


@Retention(RUNTIME) @Target(METHOD) public @interface HEAD
HTTP HEAD verb for mvc routes.
   class Resources {

     @HEAD
     public void method() {
     }
   }
 
Since:
0.1.0
Author:
edgar
  • Element Details

    • value

      String[] value
      Path pattern. This is a shortcut for path().
      Returns:
      Path pattern.
      Default:
      {}
    • path

      String[] path
      Path pattern.
      Returns:
      Path pattern.
      Default:
      {}
    • produces

      String[] produces
      Produce types. Check the Accept header against this value or send a "406 Not Acceptable" response.
      Returns:
      Produce types.
      Default:
      {}
    • consumes

      String[] consumes
      Consume types. Check the Content-Type header against this value or send a "415 Unsupported Media Type" response.
      Returns:
      Consume types.
      Default:
      {}