Added most of the rest of the MIME functions. These mostly focus on server-specified formatting requirements.
What's new in this release:
- Added
MimeTreatPartAsFile()
. This tells the server that it should consider thatmime_part
as a file with the given file name. - Added
AttachMimeAsPart(
). This allows you to embed an entire othermime_handle
as a singlemime_part
. Because there's no way to undo this action, LibQurl will stop tracking the embeddedmime_handle
and any subsequent calls to thatmime_handle
will throw an error. Also, using this function after using the embeddedmime_handle
in a transfer will fail; you have to rebuild the entire structure from scratch in order to embed. - Added
MimePartEncoder()
/SetMimePartHeaders()
. These are difficult to get feedback on without a server specifically designed to echo these low-level aspects. While libcurl reports no error, I currently have no proper test case to verify against. - Allowed
SetHeaders()
/SetMimePartHeaders()
and custom header inputs to also accept Objects (in addition to Arrays and Maps).