8000 Enable / document BYO HTTP Objects · Issue #908 · googleapis/google-cloud-python · GitHub
[go: up one dir, main page]

Skip to content
Enable / document BYO HTTP Objects #908
@dhermes

Description

@dhermes

Was recently pointed out in #903 (comment) that httplib2.Http objects are not threadsafe.

@mwitkow-io suggested that using urllib3 connection pooling would be useful to them.

Other users may also want to use Twisted for their transport layer (instead of httplib2).


Currently (as of 9491053) this is possible in datastore because Connection takes a standalone http object (of any type the user pleases) and the only place the http object is used has a very clear signature

headers, content = self.http.request(uri=..., method=..., headers=..., body=...)

Related to googleapis/oauth2client#128

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0