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

HTTPClient vs HTTPConnection #110

Closed
oTree-org opened this issue Jan 20, 2019 · 1 comment
Closed

HTTPClient vs HTTPConnection #110

oTree-org opened this issue Jan 20, 2019 · 1 comment

Comments

@oTree-org
Copy link

I see there is geventhttpclient.HTTPClient and geventhttpclient.httplib.HTTPConnection. Which do you recommend for people who are starting a new project? I will be using the library directly, not monkey patching. I'm doing get/post/put requests, about 10 in parallel.

It seems that HTTPConnection could be better because it's a drop-in replacement for a stdlib class, so it should be easy to find documentation and examples online. Is there any advantage of HTTPClient that I should consider?

@ml31415
Copy link
Collaborator

ml31415 commented Jan 21, 2019

Depends on what you want to do with it, but without further details, I'd recommend to go as highlevel as possible, so rather pick the useragent or the connectionpool, to perform your task.

P.S. The better place for questions like that would be stackoverflow.

@ml31415 ml31415 closed this as completed Jan 21, 2019
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

No branches or pull requests

2 participants