W3C home > Mailing lists > Public > public-webapi@w3.org > August 2006

Re: XMLHttpRequest conformance comments

From: Subbu Allamaraju <subbu.allamaraju@gmail.com>
Date: Wed, 2 Aug 2006 08:15:55 -0600
Message-ID: <e3f21b1a0608020715r63aaba30h7da543e20b15086@mail.gmail.com>
To: public-webapi@w3.org
Right. So, it makes more sense for getResponseHeader() to return null when a
header is not present, and return empty/non-empty string when a line for
that header is present.

Subbu

On 8/2/06, Julian Reschke <julian.reschke@gmx.de> wrote:
>
> Subbu Allamaraju schrieb:
> > c. Per the current draft, getResponseHeader() is required to return an
> > empty string if a given header is not present. From programming API
> > point of view, a value of null is more natural.
> > ...
>
> In particular, HTTP allows headers to be present with no value, and that
> means something different than the absence of that header. Please do not
> profile HTTP (where it's not needed).
>
> Best regards, Julian
>



-- 
------------------------------
http://www.subbu.org
Received on Wednesday, 2 August 2006 14:16:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:55 GMT