-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fancy multipart forms API #14
Comments
will this issue be ever resolved? 😄 I wanted to use isahc for my telegram client. but this issue was a blocker :[ |
Technically you don't need this in order to send multipart forms since a multipart form is just bytes. You can craft the request body yourself or use one of the various multipart form libraries on Crates.io to generate such a request body. One of the primary use-cases for multipart forms is to upload files, but since Isahc's core logic is async, using blocking file I/O is a non-starter. The |
Add an easy-to-use API for creating a
multipart/form-data
request body and sending it. This API should allow for referencing one or more file streams as form parts. Allowing for files is tricky as described in #7.There are a couple existing crates we could make use of:
At first glance, none of these appear to support a fully async writing of forms though, except multipart-async which looks unstable, which is unfortunate.
The text was updated successfully, but these errors were encountered: