Remove http-form_data, own multipart handler

Fixes #99 (closed)

The work of porting the multipart functionality into httpx, as well as providing some level of support for HTTP::Part objects, is done. A new feature also landed: figuring out the mime types of part, a feature inspired by Shrine's determine-mime-type plugin. So now what?

  • Close the multipart bodies

A problem waiting to happen with http-form_data is that the parts never close, i.e.: a file descriptor will open when uploading a file via HTTP::File, annd will never close. So we have to do better there.

  • Rewind on retry

A problem that may occur is that request may fail while uploading, upon which the retries will start writing from the point where they stopped. HTTP::Parts don't rewind, for instannce.

  • (Optional) merge with the form handler, deprecrate the multipart plugin

Given that httpx owns the functionality, we can ship it out of the box as a general form-data encoder.

Edited by HoneyryderChuck

Merge request reports

Loading