We are working for an Application, that is capable of sending and receiving mails using Libsoup.
The Content-Length which is part of response header, specifies the size of the compressed content sent by the Server.
The issue is When the response is received in the form of chunks, it is difficult to predict the response content size much before all the chunks received. This requires the application to allocate & reallocate memory to copy each response chunk .
If Content-encoding is set to gzip:
Why not Libsoup set the Content-length with the resulting size of decompressed content?
or
Is there any way exists for the application to know the response content size, before receiving all the response chunks?
Thanks,
Sukanya