Le 21 sept. 05, à 23:52, Laurent Perez a écrit :

...so you want to execute biz logic depending on the total size of the http
response ...

yep, exactly : I'm delivering content to poor browsers which, for
example, will not accept more than 50KB from the http response, the
biz logic is nothing too fancy, it only logs warnings about response
being too rich...

The easiest that comes to mind is to use processPipelineTo in flowscript (see http://cocoon.apache.org/2.1/userdocs/flow/api.html) to save the generated output.

Then, you can easily measure its size and decide what to do with it.

-Bertrand

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to