Skip to content

Conversation

@AndrianBdn
Copy link

Starting from Go 1.24, HTTP/2 Cleartext (H2C) is supported natively in the standard library, eliminating the need for golang.org/x/net/http2/h2c package or workarounds.

Since this repository ranks highly in search results for "golang h2c", "go http2 clear text", and similar queries, I've added examples demonstrating the modern approach to help developers discover the new native API.

Changes:

  • Added cmd-1_24/ directory with working server and client examples using the native http.Protocols API
  • Updated README to prominently feature Go 1.24+ native support at the top
  • Preserved existing examples for users on Go < 1.24
  • Included note about H2C upgrade deprecation

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