Skip to content

Commit

Permalink
http2/h2c: make the h2c supported mechanisms docs available in godoc
Browse files Browse the repository at this point in the history
Change-Id: I37154fb64fa94ae57bd55463c78ea9c943ed2213
GitHub-Last-Rev: d3d2e98
GitHub-Pull-Request: #218
  • Loading branch information
xieyuschen committed Oct 1, 2024
1 parent f88258d commit 175c55f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions http2/h2c/h2c.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ type h2cHandler struct {
// The first request on an h2c connection is read entirely into memory before
// the Handler is called. To limit the memory consumed by this request, wrap
// the result of NewHandler in an http.MaxBytesHandler.
//
// NewHandler supports both HTTP/1.1 upgrade (RFC 7540, section 3.2)
// and HTTP/2 with prior knowledge (RFC 7540, section 3.4).
func NewHandler(h http.Handler, s *http2.Server) http.Handler {
return &h2cHandler{
Handler: h,
Expand Down

0 comments on commit 175c55f

Please sign in to comment.