W3C home > Mailing lists > Public > ietf-http-wg@w3.org > April to June 2008

RE: I-D ACTION:draft-nottingham-http-link-header-01.txt

From: Brian Smith <brian@briansmith.org>
Date: Tue, 29 Apr 2008 07:49:21 -0700
To: "'Jamie Lokier'" <jamie@shareable.org>, "'Phil Archer'" <parcher@icra.org>
Cc: "'Mark Nottingham'" <mnot@mnot.net>, "'atom-syntax Syntax'" <atom-syntax@imc.org>, "'HTTP Working Group'" <ietf-http-wg@w3.org>
Message-ID: <002e01c8aa08$36fa6920$0202a8c0@T60>

Jamie Lokier wrote:
> How about:
> 
>     Generic-Link: URL=value
> 
> Which is required to be written in exactly that form, the URN denotes
> the relation type, and the URN is always unquoted, absolute, and in
> a canonical form.
> 
> It seems to satisfy the same easy parsing and substitution
> requirements that motivate foo-Link, while providing the flexibility
> of URNs for unregistered relation types.

I agree it is seems easier to parse at first. But, you have to change it to
at least the following to support multiple "Generic-Link" headers (See [1]):

     Generic-Link: #(URL=value)

And then you have to disambiguate the commas:

     Generic-Link: #(<URL>=value)

And, even then, there is no mechanism for parameters, which I think it
helpful (especially the "type" parameter).

Regards,
Brian

[1] RFC 2616, Section 4.2:

"Multiple message-header fields with the same field-name MAY be
 present in a message if and only if the entire field-value for that
 header field is defined as a comma-separated list [i.e., #(values)].
 It MUST be possible to combine the multiple header fields into one
 "field-name: field-value" pair, without changing the semantics of the
 message, by appending each subsequent field-value to the first, each
 separated by a comma. The order in which header fields with the same
 field-name are received is therefore significant to the
 interpretation of the combined field value, and thus a proxy MUST NOT
 change the order of these field values when a message is forwarded."
Received on Tuesday, 29 April 2008 14:50:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 06:50:47 GMT