Skip to content

Commit

Permalink
improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Jul 16, 2021
1 parent 6b407b9 commit f32be5c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/net/http/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,15 @@ type ResponseWriter interface {
// times before sending the final header.
//
// If the passed status code is 103, the current content of the header
// map will be sent as early hints for the client.
// map will be sent immediatly as early hints for the client.
//
// The server automatically sends the 100-continue response header
// when the Request.Body is read.
//
// Response headers may be buffered. In some cases (e.g. when using
// Resource Hints or Preload Link headers), sending headers to the
// client while the response is being generated can improve performance.
// To do so, use the Flusher interface.
WriteHeader(statusCode int)
}

Expand Down

0 comments on commit f32be5c

Please sign in to comment.