You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is possible to use libcurl in an asynchronous fashion using the non-blocking multi API, you can see an example of how this is done here (though that is pretty outdated). We don't provide any helpers for doing this as that is outside the scope of this repo, which is specifically to provide safe Rust bindings to libcurl.
If you want a higher-level async HTTP client based on curl you could take a look at Isahc, which is implemented on top of this crate in an async manner, using the multi API as I mentioned.
Activity
sagebind commentedon Oct 24, 2022
It is possible to use libcurl in an asynchronous fashion using the non-blocking multi API, you can see an example of how this is done here (though that is pretty outdated). We don't provide any helpers for doing this as that is outside the scope of this repo, which is specifically to provide safe Rust bindings to libcurl.
If you want a higher-level async HTTP client based on curl you could take a look at Isahc, which is implemented on top of this crate in an async manner, using the multi API as I mentioned.
LorenzoLeonardo commentedon Feb 6, 2024
I have already created async implementation on top of this. This might be helpful for those who want to do Curl Asynchronously.
https://github.com/LorenzoLeonardo/async-curl (Actor)
https://github.com/LorenzoLeonardo/curl-http-client (Ergonomic Builder that uses the Actor Model)