SIGN IN SIGN UP

gh-69152: add method get_proxy_response_headers to HTTPConnection class (#104248)

Add http.client.HTTPConnection method get_proxy_response_headers() - this is a followup to https://github.com/python/cpython/pull/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>
A
Alexey Namyotkin committed
85ec192ac4b000d4e47df6123b65eacbd1fdccfa
Parent: 24d8b88
Committed by GitHub <noreply@github.com> on 5/16/2023, 6:20:30 AM