Преглед изворни кода

update ConfigureServer docs

Brad Fitzpatrick пре 11 година
родитељ
комит
753293a2cb
1 измењених фајлова са 3 додато и 2 уклоњено
  1. 3 2
      http2.go

+ 3 - 2
http2.go

@@ -263,8 +263,9 @@ func (sc *serverConn) processContinuation(f *ContinuationFrame) error {
 	return sc.processHeaderBlockFragment(f.HeaderBlockFragment(), f.HeadersEnded())
 }
 
-// ConfigureServer adds HTTP2 support to s as configured by the HTTP/2
-// server configuration in conf. The configuration may be nil.
+// ConfigureServer adds HTTP/2 support to a net/http Server.
+//
+// The configuration conf may be nil.
 //
 // ConfigureServer must be called before s begins serving.
 func ConfigureServer(s *http.Server, conf *Server) {