I was implementing HEAD on a resource and couldn't figure out how to do it
so I looked at the source for Resource.handleHead() and was surprised to
see it calls handleGet(). My understanding of HEAD is that it provides 
all but the entity. That seems to imply that that getRepresentation()
needs to check what method is used and special case HEAD somehow. That is
awkward and inconsistent with the rest of the method handling paradigm.

One solution is to provide allowHead() and head(). It might make sense
to implement head() by calling getRepresentation() but this approach
doesn't require it and fits better with the current method handling
style.

Sean

Reply via email to