Encoding multipart/form-data HTTP body

So the intent behind creating streaming one is that I have to send multipart requests that contain files, and these files can be many megabytes in size. If I do N of these requests at the same time, I could easily end up exhausting my memory quota.

So, the intent was not to make it more performant, but make it not crash production server.

I actually have no idea how the streaming performance versus non-streaming compares. It’d be good test to do.

3 Likes