On Sun, 20 Jun 2021, Daniel F via curl-library wrote:

I think of two possible callbacks: one called before first part of a chunk is delivered to the app (it may have chunk size as a param), and another called after last part of chunk is delivered to the app. Any of them would be fine for me.

I think that would encourage really bad applications.

1. The server is not obliged to provide chunks in the response just because it did it once or usually does it. You cannot rely on them.

2. If you access the resource over a HTTP proxy it may *change* the chunks
mid-stream.

3. If you get the data over HTTP/2 or HTTP/3, chunked encoding doesn't
exist...


--

 / daniel.haxx.se
 | Commercial curl support up to 24x7 is available!
 | Private help, bug fixes, support, ports, new features
 | https://www.wolfssl.com/contact/
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html

Reply via email to