get/set_encoding interface should be on SoupMessageBody, not SoupMessageHeaders
@danw
Submitted by Dan Winship Assigned to libsoup-maint@gnome.bugs
Link to original bug (#522146)
Description
There needs to be a way to use "OVERWRITE_CHUNKS" mode with the request body. That is, PUTting a large body without keeping it all in memory at once.
Some related issues that could be fixed along with this:
-
There are actually 4 cases, corresponding to request body vs response body, and client vs server. (Currently client+response and server+request work. The text above talks about client+request. Obviously server+response should work too.)
-
soup_message_headers_set_encoding() is bizarre... it seems like it should be soup_message_body_set_encoding().
-
You cannot provide a body in chunks unless you are actually using chunked encoding. Provided that the app gives the content-length in advance, there's no reason it couldn't then provide the body in chunks when using content-length encoding.
Version: 2.4.x