W3C home > Mailing lists > Public > ietf-dav-versioning@w3.org > April to June 2006

getcontentlength property

From: Werner Donné <werner.donne@re.be>
Date: Mon, 08 May 2006 17:39:03 +0200
Message-ID: <445F6617.8050604@re.be>
To: ietf-dav-versioning@w3.org

Hi,

RFC 2518 says that the getcontentlength property is mandatory if
the resource returns the Content-Length header in response to a GET.

In a servlet container you don't always know if that header will
be in the response. Normally a document is streamed to the response
body. The container sees this because of the intermediate flushes.
It will then use the chunked transfer encoding. It can be, however,
that the document is smaller than the internal streaming buffer.
There are no intermediate flushes then and the container may choose
to not use a transfer encoding, in which case the Content-Length
header will be set.

It is also an expensive operation if the document is versioned and
must be reconstructed from a delta file.

Regards,

Werner.
-- 
Werner Donné  --  Re
Engelbeekstraat 8
B-3300 Tienen
tel: (+32) 486 425803	e-mail: werner.donne@re.be
Received on Monday, 8 May 2006 15:38:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 13:57:44 GMT