refactor(client)!: use bitreq for both BlockingClient and AsyncClient#137
Conversation
293c886 to
7d21272
Compare
Pull Request Test Coverage Report for Build 18927210446Details
💛 - Coveralls |
c03e04f to
fd63f37
Compare
fd63f37 to
4b0dbd0
Compare
6ba4aad to
5b989db
Compare
|
@oleonardolima Any update here? The |
@tnull I didn't follow the recent changes for the latest bitreq release, do you deem it production-ready and with the feature-parity that we need from reqwest here ? |
Yes, we made good progress there (full/fixed async support, added a |
e9d41e0 to
1337d8e
Compare
bitreq for both BlockingClient and AsyncClient
|
@tnull I did an initial shot on this one, it's pretty straight-forward so far. However, there's still some API changes I'd like to do, mainly trying to unify it into a single client. Also, I didn't throughly tested it yet, specially in wasm environments. Also, I'm wondering if it'd be best to wait for the |
4c79f38 to
1d81b39
Compare
- update the `BlockingClient` to use `bitreq` instead of `minreq`
d984950 to
86aeb2e
Compare
- update the `AsyncClient` to use `bitreq` instead of `reqwest`
- refactors the blocking client http get/post methods, remove duplicated error handling and bitreq calls. - add new `build_request` to build raw `Requests` with all required data, such as: timeout, proxy, headers.
- introduce new `build_request` to build raw `Request`s with all required fields, such as: timeout, proxy and headers. - rename the `post_request_bytes` to simple `post_request`.
86aeb2e to
2ec119b
Compare
Closes #136
Closes #183
Closes #184
Closes #185
Description
The PR remove the usage of both
minreqandreqwest, relying on only inbitreqas the HTTP client for bothBlockingClientandAsyncClient.It also does some minimal refactor in
BlockingClientto remove some of the duplicated code, more refactoring and organization could be done in a follow-up.Notes to the reviewers
Let me know in the comments if you see any improvements feature-wise, or on the usage of
bitreqAPI.Changelog notice
TBD
Checklists
All Submissions:
New Features: