◐ Shell
clean mode source ↗

gh-69152: Add _proxy_response_headers attribute to HTTPConnection by nametkin · Pull Request #26152 · python/cpython

MaxwellDupre

nametkin

@arhadthedev arhadthedev changed the title bpo-24964: Add _proxy_response_headers attribute to HTTPConnection gh-69152: Add _proxy_response_headers attribute to HTTPConnection

Apr 24, 2023

orsenthil

orsenthil

@nametkin

orsenthil

@orsenthil

@nametkin nametkin deleted the add_proxy_response_headers branch

May 5, 2023 19:02

gpshead

carljm added a commit to carljm/cpython that referenced this pull request

May 5, 2023

jbower-fb pushed a commit to jbower-fb/cpython that referenced this pull request

May 8, 2023
…on (python#26152)

Add _proxy_response_headers attribute to HTTPConnection (python#26152)

---------

Co-authored-by: Senthil Kumaran <senthil@python.org>

gpshead added a commit that referenced this pull request

May 16, 2023
…ss (#104248)

Add http.client.HTTPConnection method get_proxy_response_headers() - this is a followup to #26152 which added it as a non-public attribute. This way we don't pre-compute a headers dictionary that most users will never access. The new method is properly public and documented and triggers full proxy header parsing into a dict only when actually called.

---------

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>