Open tsnoam opened 7 months ago
We support linking against libcurl versions older than 7.56.0 (when the mime API was added) so this will need to be behind an opt-in feature to avoid breaking compatibility with those older versions.
We support linking against libcurl versions older than 7.56.0 (when the mime API was added) so this will need to be behind an opt-in feature to avoid breaking compatibility with those older versions.
Ok. Done.
@sagebind I've adhered to your comments (except for the one I replied with a question of my own). Is there anything else you would to see?
libcurl considers the form api deprecated. in
curl_formadd(3)
one of the first lines says:This pull requests implements a safe wrapper of the mime api, keeping simplicity in mind. Usage is quite straight forward.
The following example is a bit simplified (lot of unwraps, usage of
&str
where possible.