Title: Enable / document BYO HTTP Objects · Issue #908 · googleapis/google-cloud-python · GitHub
Open Graph Title: Enable / document BYO HTTP Objects · Issue #908 · googleapis/google-cloud-python
X Title: Enable / document BYO HTTP Objects · Issue #908 · googleapis/google-cloud-python
Description: 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 l...
Open Graph Description: 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 w...
X Description: 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 w...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/908
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Enable / document BYO HTTP Objects","articleBody":"Was recently pointed out in https://github.com/GoogleCloudPlatform/gcloud-python/issues/903#issue-83467800 that `httplib2.Http` objects are not threadsafe.\n\n@mwitkow-io suggested that using [`urllib3`](https://urllib3.readthedocs.org/en/latest/) connection pooling would be useful to them.\n\nOther users may also want to use [Twisted](https://twistedmatrix.com/trac/) for their transport layer (instead of `httplib2`).\n\n---\n\nCurrently (as of 9491053699708cef29cdbefeba65572e8481f067) this is possible in `datastore` because `Connection` takes a standalone `http` object (of any type the user pleases) and the [only place](https://github.com/GoogleCloudPlatform/gcloud-python/blob/3e86aaed3c7e192a17d9b790f90a41cc2b7baa6a/gcloud/datastore/connection.py#L84-L86) the `http` object is used has a very clear signature\n\n``` python\nheaders, content = self.http.request(uri=..., method=..., headers=..., body=...)\n```\n\n---\n\nRelated to https://github.com/google/oauth2client/issues/128\n","author":{"url":"https://github.com/dhermes","@type":"Person","name":"dhermes"},"datePublished":"2015-06-05T17:57:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/908/google-cloud-python/issues/908"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7e16afd6-0ca9-dd22-0018-2935f606a58b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9EEC:3AEA09:350792:48245A:6A4DC432 |
| html-safe-nonce | 54b1f2dbde43bc8ccdfc997920b39c6744542d97386044a3c0bbe2a928b8d204 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RUVDOjNBRUEwOTozNTA3OTI6NDgyNDVBOjZBNERDNDMyIiwidmlzaXRvcl9pZCI6IjU4MTQ1ODgzOTQyNDg3MTczNjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2bf17f4a5a9fdf144a84055646e3641f77143ae44da8b1ffd29d4939d4d3281d |
| hovercard-subject-tag | issue:85593251 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-python/908/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b900e852317cda9931c8ad43a8acfdf593129eb5f19dac85c1b0f6cc92b06af1/googleapis/google-cloud-python/issues/908 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b900e852317cda9931c8ad43a8acfdf593129eb5f19dac85c1b0f6cc92b06af1/googleapis/google-cloud-python/issues/908 |
| og:image:alt | 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 w... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dhermes |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 16316451 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16316451 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width