Descriptionnet/http: more tests, better comments, remove an allocation
Add more tests around the various orders handlers can access
and flush response headers.
Also clarify the documentation on fields of response and
chunkWriter.
While there, remove an allocation (a header clone) for simple
handlers.
benchmark old ns/op new ns/op delta
BenchmarkServerFakeConnWithKeepAliveLite 15245 14966 -1.83%
benchmark old allocs new allocs delta
BenchmarkServerFakeConnWithKeepAliveLite 24 23 -4.17%
benchmark old bytes new bytes delta
BenchmarkServerFakeConnWithKeepAliveLite 1717 1668 -2.85%
Patch Set 1 #Patch Set 2 : diff -r c879a45c3389 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r c879a45c3389 https://go.googlecode.com/hg/ #
Total comments: 4
Patch Set 4 : diff -r 457cc24872ec https://go.googlecode.com/hg/ #
MessagesTotal messages: 3
|