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

Allow http as an argument to base Connection class. #608

Merged
merged 2 commits into from
Feb 12, 2015

Conversation

dhermes
Copy link
Contributor

@dhermes dhermes commented Feb 10, 2015

This will allow libraries other than httplib2 to be used.

Fixes #551.

@tseaver I dream of tearing httplib2 out as a dependency (also would need to come out of oauth2client) and using something simple like httplib for the default http object. Sigh.

But really this is to support users in specialized environments like twisted or people who prefer requests

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 10, 2015
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 979a334 on dhermes:fix-551 into b395360 on GoogleCloudPlatform:master.

Subclasses may seek to use the private key from ``credentials`` to sign
data.

A custom (non-``httplib``) HTTP object must have a ``request`` method

This comment was marked as spam.

@tseaver
Copy link
Contributor

tseaver commented Feb 10, 2015

I don't see any harm in allowing the caller to pass in the http object, but ot seems likely that there will be a significant "adapter layer" required to allow use of any other object than the httplib2 one (matching the semantics as well as the method names may be quite involve).

@dhermes
Copy link
Contributor Author

dhermes commented Feb 12, 2015

@tseaver I updated to non-httplib2 (folded into 2nd commit on rebase).

As for the layer, I'm unclear on who will use it but could see people building adapters that we wouldn't need to have control over.

Other issues?

@tseaver
Copy link
Contributor

tseaver commented Feb 12, 2015

LGTM

dhermes added a commit that referenced this pull request Feb 12, 2015
Allow http as an argument to base Connection class.
@dhermes dhermes merged commit 06078cb into googleapis:master Feb 12, 2015
@dhermes dhermes deleted the fix-551 branch February 12, 2015 20:08
vchudnov-g pushed a commit that referenced this pull request Sep 20, 2023
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DISCUSSION: Allow http as an argument to Connection so libraries other than httplib2 can be used
4 participants