-
Notifications
You must be signed in to change notification settings - Fork 90
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
Use reqwest by default #563
Conversation
426c152
to
7c7dd4a
Compare
It is as if #524 doesn't exist |
I did look at it, but since I didn’t have much time to work on this, I preferred to rush something that works with the community. Sorry. Once this is merged I would love to work with you on improving the SDK even more, thanks for your work |
e09f022
to
8867b9e
Compare
8867b9e
to
394dff2
Compare
…tomization of http client
3d82ce6
to
060d990
Compare
060d990
to
741bf4e
Compare
9a4ee80
to
352f846
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bors merge
563: Use reqwest by default r=irevoire a=irevoire # Pull Request ## Related issue Fixes #530 because we won’t depend on curl anymore ## What does this PR do? - Get rid of `isahc` by default in favor of `reqwest`, which is way more used in the ecosystem ## PR checklist Please check if your PR fulfills the following requirements: - [x] Create an example changing the default HTTP client - [x] Simplify the `HttpClient` trait to only require one method to be implemented - [x] Stores a basic `reqwest::Client` in the `meilisearch_sdk::Client` instead of re-creating it from scratch for every request - [x] Double check it works with wasm - [x] Remove all the unwraps in `request` - [x] Do not use the `User-Agent` when in wasm as it is often blocked by the browser Co-authored-by: Tamo <[email protected]>
This PR was included in a batch that successfully built, but then failed to merge into main. It will not be retried. Additional information: {"message":"At least 1 approving review is required by reviewers with write access.","documentation_url":"https://docs.github.com/articles/about-protected-branches"} |
bors merge |
Build succeeded: |
Pull Request
Related issue
Fixes #530 because we won’t depend on curl anymore
What does this PR do?
isahc
by default in favor ofreqwest
, which is way more used in the ecosystemPR checklist
Please check if your PR fulfills the following requirements:
HttpClient
trait to only require one method to be implementedreqwest::Client
in themeilisearch_sdk::Client
instead of re-creating it from scratch for every requestrequest
User-Agent
when in wasm as it is often blocked by the browser