dev@jsr311.java.net

Re: HEAD and OPTIONS

From: Stefan Tilkov <stefan.tilkov_at_innoq.com>
Date: Fri, 29 Jun 2007 16:11:09 +0200

On Jun 29, 2007, at 3:44 PM, Marc Hadley wrote:

> So, for a HEAD request (in order or decreasing preference):
>
> 1. Call a method annotated with @HttpMethod(HEAD) or, if none present,
> 2. Call a method annotated with @HttpMethod(GET) and discard any
> entity.
>
> I agree we should flag the potential for decreased performance with 2.
>
> For an OPTIONS request:
>
> 1. Call a method annotated with @HttpMethod(OPTIONS) or, if none
> present,
> 2. Automagically generate a response from the declared metadata

+1! This sounds perfect.

Stefan