Skip to content

Commit 57a11d5

Browse files
committed
improve docs
1 parent d781e9f commit 57a11d5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/net/http/server.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,15 @@ type ResponseWriter interface {
154154
// times before sending the final header.
155155
//
156156
// If the passed status code is 103, the current content of the header
157-
// map will be sent as early hints for the client.
157+
// map will be sent immediatly as early hints for the client.
158158
//
159159
// The server automatically sends the 100-continue response header
160160
// when the Request.Body is read.
161+
//
162+
// Response headers may be buffered. In some cases (e.g. when using
163+
// Resource Hints or Preload Link headers), sending headers to the
164+
// client while the response is being generated can improve performance.
165+
// To do so, use the Flusher interface.
161166
WriteHeader(statusCode int)
162167
}
163168

0 commit comments

Comments
 (0)