W3C home > Mailing lists > Public > public-webapi@w3.org > January 2007

Re: ISSUE-109: Do loaded/total count the bytes transferred with encodings applied or not?

From: Anne van Kesteren <annevk@opera.com>
Date: Mon, 29 Jan 2007 16:52:12 +0100
To: "Boris Zbarsky" <bzbarsky@mit.edu>, "Maciej Stachowiak" <mjs@apple.com>
Cc: "Web API WG (public)" <public-webapi@w3.org>
Message-ID: <op.tmxadawt64w2qv@id-c0020.nomadprime.subscribe.loganwifi.com>

On Mon, 29 Jan 2007 16:12:09 +0100, Boris Zbarsky <bzbarsky@mit.edu> wrote:
>>> i.e. if you have a transfer-encoding or content-encoding, do you count
>>> the transfer size before or after you are unpacking?
>>> Seems to me that it makes more sense to count the data with the
>>> relevant encodings applied - i.e. the number of bytes being pushed over
>>> the wire (or over the air)...
>>  Which one does the http protocol give you when you have a Content-  
>> Length header?
> It gives the encoded length, since Content-Length is how many bytes you  
> need to read from the connection.

The specification should probably also cover the case when Content-Length  
is not accurate. I suppose either .total would change then (and perhaps  
the boolean attribute if it's added back).

Anne van Kesteren
Received on Monday, 29 January 2007 15:52:34 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:23 UTC