Implement multipart layer, ditch "http-form_data"
Keeping the multipart implementation closer might be easier going into the future.
The "readable" interface from http-form_data
breaks in a few inexpected ways:
- Parts are "readable", but aren't rewindable;
- Not only that, parts fail silently (when fully consumed, they throw an empty string);
- Parts are relatively "shallow" when it comes to its content type. I don't think it's their fault (it's pretty hard, and other gems like
mime-types
accomplish it), but there are certainly ways one can explore.
Edited by HoneyryderChuck