]> Cypherpunks repositories - gostls13.git/commit
net/http: document ResponseWriter and Handler more; add test
authorBrad Fitzpatrick <bradfitz@golang.org>
Thu, 17 Dec 2015 20:53:41 +0000 (20:53 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 17 Dec 2015 21:21:31 +0000 (21:21 +0000)
commitc70df74aab1b0be661003f525ba6021a5523a84e
treeb6cba38787ee6c97d529419f07bc57c48b5c8591
parentc7b1ef9918893ca58eb36f60c9e8a28371c5325e
net/http: document ResponseWriter and Handler more; add test

Update docs on ResponseWriter and Handler around concurrency.

Also add a test.

The Handler docs were old and used "object" a lot. It was also too
ServeMux-centric.

Fixes #13050
Updates #13659 (new issue found in http2 while writing the test)

Change-Id: I25f53d5fa54f1c9d579d3d0f191bf3d94b1a251b
Reviewed-on: https://go-review.googlesource.com/17982
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/clientserver_test.go
src/net/http/server.go