Title: gh-69152: Add _proxy_response_headers attribute to HTTPConnection by nametkin · Pull Request #26152 · python/cpython · GitHub
Open Graph Title: gh-69152: Add _proxy_response_headers attribute to HTTPConnection by nametkin · Pull Request #26152 · python/cpython
X Title: gh-69152: Add _proxy_response_headers attribute to HTTPConnection by nametkin · Pull Request #26152 · python/cpython
Description: It would be nice to be able to access the proxy response headers after tunneling through the proxy. Now these headers can only be obtained in debug mode. This is necessary both for the case of a successful connection, and for the case of problems with establishing a connection (for example, in order to see the type of authentication required). Later, having access to the header Proxy-Authenticate, it will be possible to simplify the authentication on the proxy server in the dependent libraries urllib3, requests. There are problems with this now (Digest Proxy Auth, NTLM Proxy Auth, Kerberos Proxy Auth) My proposed version is based on the idea proposed by Thomas Belhalfaoui in issue 24964. And also on the approach used in the library http.rb (here) https://bugs.python.org/issue24964 Issue: gh-69152
Open Graph Description: It would be nice to be able to access the proxy response headers after tunneling through the proxy. Now these headers can only be obtained in debug mode. This is necessary both for the case of a su...
X Description: It would be nice to be able to access the proxy response headers after tunneling through the proxy. Now these headers can only be obtained in debug mode. This is necessary both for the case of a su...
Opengraph URL: https://github.com/python/cpython/pull/26152
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:52000893-df92-a336-cf82-b60c1d759d82 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B9BC:39B4F8:2178AF:2C619C:6969D759 |
| html-safe-nonce | 2535e950d94ca308466b8131277a3251eb75b5d659dc3643766a3b295eee3dee |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOUJDOjM5QjRGODoyMTc4QUY6MkM2MTlDOjY5NjlENzU5IiwidmlzaXRvcl9pZCI6IjY3NzA4NjA1MjQ5NjI5OTg2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2852926865206b5b4c463a35a3c13ac8612ea3f8a6d371b12f79054cf6982e0c |
| hovercard-subject-tag | pull_request:645213851 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/python/cpython/pull/26152/files |
| twitter:image | https://avatars.githubusercontent.com/u/62434915?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/62434915?s=400&v=4 |
| og:image:alt | It would be nice to be able to access the proxy response headers after tunneling through the proxy. Now these headers can only be obtained in debug mode. This is necessary both for the case of a su... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | acedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 83c08c21cdda978090dc44364b71aa5bc6dcea79 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width