Hi Patrick,
>> Any hint where I can do it myself? In which embed? Is there an embed where the whole page is available, just before sending to the browser, including the HEADERs?
alas, no it's not that simple.
The response packets are sent out to the browser as they are generated. They typically ultimately flow through the .SendString method in the WebHandler.
My guess is that the implementation rests on a few things;
a) check the browser has "accept gzip" on. you can check the p_web.RequestGzip property = 1 for this;
b) have some sort of "start buffer" and "end buffer" points. perhaps this is just when the connection opens, and closes - or perhaps it has to be explicit, I'm not sure.
c) redirect the data flowing into SendString so it is redirected to a memory buffer.
d) then at the end point, compress the whole buffer and send it.
Not surprisingly there are some vague bits in the above - there is much I'd need to test to provide a complete solution.
cheers
Bruce