Skip to content

Move tunnel_start_tls() to HTTPConnection - #609

Merged
lovelydinosaur merged 1 commit into
masterfrom
refactor/connection-start-tls
Dec 6, 2019
Merged

lovelydinosaur merged 1 commit into
masterfrom
refactor/connection-start-tls

Conversation

@florimondmanca

Copy link
Copy Markdown
Contributor

Prompted by #496 (comment)

Removes pending HTTP version-specific usage from HTTPProxy, in order to make it easier to disable HTTP/2 by default in the future (by lazily importing h2).

I added a few extra comments in there to further clarify how and why .tunnel_start_tls() works.

@lovelydinosaur

Copy link
Copy Markdown
Member

Yes! Lovely incremental refactor.

@lovelydinosaur

Copy link
Copy Markdown
Member

I guess we may also have a second half of this where we move the implementation all the way onto HTTP11Connection, so that HTTPConnection is not reaching into its implementation details.

Kludex referenced this pull request in pydantic/httpx2 May 11, 2026
Co-authored-by: Tom Christie <tom@tomchristie.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants