We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d781e9f commit 57a11d5Copy full SHA for 57a11d5
src/net/http/server.go
@@ -154,10 +154,15 @@ type ResponseWriter interface {
154
// times before sending the final header.
155
//
156
// If the passed status code is 103, the current content of the header
157
- // map will be sent as early hints for the client.
+ // map will be sent immediatly as early hints for the client.
158
159
// The server automatically sends the 100-continue response header
160
// 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.
166
WriteHeader(statusCode int)
167
}
168
0 commit comments