Skip to content

Add Transport.SetT1 - #34

Merged
bogdanfinn merged 1 commit into
bogdanfinn:masterfrom
pagpeter:http2-transport-set-t1
Oct 26, 2026
Merged

bogdanfinn merged 1 commit into
bogdanfinn:masterfrom
pagpeter:http2-transport-set-t1

Conversation

@pagpeter

Copy link
Copy Markdown

An http2.Transport built as a struct literal has no t1, so it ignores the HTTP/1 settings it would otherwise read from it, such as ResponseHeaderTimeout. ConfigureTransports is the only way to set t1, and it also registers the HTTP/2 transport on t1, which callers that dial their own connections, like tls-client, do not want.

SetT1 complements GetT1 and lets those callers provide the settings.

An http2.Transport built as a struct literal has no t1, so it ignores the
HTTP/1 settings it would otherwise read from it, such as
ResponseHeaderTimeout. ConfigureTransports is the only way to set t1, and
it also registers the HTTP/2 transport on t1, which callers that dial
their own connections, like tls-client, do not want.

SetT1 complements GetT1 and lets those callers provide the settings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bogdanfinn
bogdanfinn merged commit 299cc91 into bogdanfinn:master Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants