Re: Use of Link rel+type for application discovery

On Thu, Jan 22, 2009 at 2:43 AM, Eran Hammer-Lahav <eran@hueniverse.com> wrote:
>
> In Link headers / elements, the 'rel' attribute defines the relationship and the 'type' attribute provides a hint regarding the content type of the destination resource. Is it correct to assume that while 'type' does not define a relationship (as in, 'image/*' means 'my pictures'), applications may require that both the 'rel' and 'type' attribute carry a certain value when used.
>
> In other words, is it valid to say "look for a link with rel='a' and type='b' and only if both found, do something"?

As you point out, "type" is only a hint, so I wouldn't recommend that approach.

Mark.

Received on Thursday, 22 January 2009 13:24:40 UTC