File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -154,10 +154,15 @@ type ResponseWriter interface {
154
154
// times before sending the final header.
155
155
//
156
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.
157
+ // map will be sent immediatly as early hints for the client.
158
158
//
159
159
// The server automatically sends the 100-continue response header
160
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.
161
166
WriteHeader (statusCode int )
162
167
}
163
168
You can’t perform that action at this time.
0 commit comments