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

Re: estimated Content-Length with chunked encoding

From: Jamie Lokier <jamie@shareable.org>
Date: Mon, 20 Oct 2008 23:21:21 +0100
To: Henrik Nordstrom <henrik@henriknordstrom.net>
Cc: Greg Dean <dean.greg@gmail.com>, ietf-http-wg@w3.org
Message-ID: <20081020222121.GA5862@shareable.org>

Henrik Nordstrom wrote:
> On mån, 2008-10-20 at 13:52 -0700, Greg Dean wrote:
> > 
> > Transfer-Encoding: chunked
> > Estimated-Content-Length: 300000
> > This would allow for the recipient of such a message to prepare for a
> > message of a certain size.
> Looks useful to me, for the reasons you outlined and a bunch more. See
> for example the NTLM auth chunked discussion a year ago or so..
> For responses it's meaningful even without chunked.
> I don't see anything wrong with it, especially not with the length being
> an estiamte and not the exact expected lenght.

In some circumstances you may be able to refine the estimate as the
message is being transmitted.

Chunk extensions ("chunk-extension") would suit that:

    (1000 bytes)
    (1000 bytes)

I don't know if chunk extensions break in the real world, though.

-- Jamie
Received on Monday, 20 October 2008 22:21:58 GMT

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