Skip to content

Add go1.24-specific implementation of "h2c" scheme - #76

Merged
jhump merged 1 commit into
mainfrom
jh/go-124-h2c
Apr 23, 2025
Merged

jhump merged 1 commit into
mainfrom
jh/go-124-h2c

Conversation

@jhump

@jhump jhump commented Apr 22, 2025

Copy link
Copy Markdown
Member

As of Go 1.24, we no longer need to import "golang.org/x/net/http2" in order to support the "h2c" scheme (to force HTTP/2 over plain-text).

This adds a Go-1.24-specific implementation that uses the latest H2C features in "net/http". Build tags are used so that we continue using the old implementation for projects still using Go 1.23.

@jhump
jhump requested a review from a user April 22, 2025 16:47
@jhump
jhump merged commit cb2bdba into main Apr 23, 2025
@jhump
jhump deleted the jh/go-124-h2c branch April 23, 2025 12:32
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.

1 participant