Skip to content
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

feat: support both sync and async curl transactions #41

Conversation

LorenzoLeonardo
Copy link
Owner

There is a slight change in the builder pattern so that we could be able to use this crate dynamically both sync and async transactions for Curl rust.

@LorenzoLeonardo LorenzoLeonardo force-pushed the 40-a-need-to-also-support-synchronous-curl-making-this-library-dynamic-that-could-perform-both-sync-and-async-transactions branch 3 times, most recently from 857db60 to e7ee6aa Compare February 17, 2024 06:11
There is a slight change in the builder pattern so that we
could be able to use this crate dynamically both sync and async
transactions for Curl rust.
@LorenzoLeonardo LorenzoLeonardo force-pushed the 40-a-need-to-also-support-synchronous-curl-making-this-library-dynamic-that-could-perform-both-sync-and-async-transactions branch 2 times, most recently from e22c7f7 to 3c2dbaf Compare February 17, 2024 08:57
The purpose of the major version up is to cater both
synchronous and asynchronous transactions for curl-rust.

There are breaking changes in terms of the builder pattern.
We use blocking() to signify the end of the Curl builder to do a
blocking perform after and nonblocking() to signify the end of the
Curl builder to do a nonblocking perform after.

For nonblocking transaction, the actor handler is now passed into nonblocking
function instead in the new constructor of the HttpClient.
@LorenzoLeonardo LorenzoLeonardo force-pushed the 40-a-need-to-also-support-synchronous-curl-making-this-library-dynamic-that-could-perform-both-sync-and-async-transactions branch from 3c2dbaf to 0f380d0 Compare February 17, 2024 09:42
@LorenzoLeonardo LorenzoLeonardo merged commit bb37e2d into master Feb 17, 2024
13 checks passed
@LorenzoLeonardo LorenzoLeonardo deleted the 40-a-need-to-also-support-synchronous-curl-making-this-library-dynamic-that-could-perform-both-sync-and-async-transactions branch February 17, 2024 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant