Thanks to visit codestin.com
Credit goes to github.com

Skip to content

async: replace urllib3 with httpx in THttpClient #261

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

Merged
merged 3 commits into from
Oct 25, 2023
Merged

Conversation

susodapop
Copy link
Contributor

@susodapop susodapop commented Oct 25, 2023

Description

On the road to implementing async, I've added async_thrift_http_client.py which began as an exact duplicate of thrift_http_client.py. Then I replaced all calls to urllib3 with calls to httpx, but using the synchronous API. This way I can verify that our handler "speaks" the language of httpx. I then ran our e2e test suite to ensure that it works.

The only failures in the e2e test were those around our custom retry policy, which I have not implemented yet.

I'll also note that proxy handling is not implemented here. And there's currently no mapping between certificates provided by users in their call to .connect() and what is actually provided to httpx. Those will come in follow-ups.

Related tickets and documents

#176

Jesse Whitehouse added 3 commits October 25, 2023 16:24
@susodapop susodapop merged commit 170daf8 into async Oct 25, 2023
@susodapop susodapop deleted the async-two branch October 25, 2023 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants