summaryrefslogtreecommitdiff
path: root/test/method1.go
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2013-01-11 10:03:43 -0800
committerBrad Fitzpatrick <bradfitz@golang.org>2013-01-11 10:03:43 -0800
commitf9de52ba34dc3c742dad2b4aee70e6d85855dd25 (patch)
treed56441c0e3f5a5a1535436fcf43a79affe1712d7 /test/method1.go
parentf20a0854a5345a0edd76afcc5f7f391ad3b7d877 (diff)
downloadgo-f9de52ba34dc3c742dad2b4aee70e6d85855dd25.tar.gz
net/http: buffer before chunking
This introduces a buffer between writing from a handler and writing chunks. Further, it delays writing the header until the first full chunk is ready. In the case where the first full chunk is also the final chunk (for small responses), that means we can also compute a Content-Length, which is a nice side effect for certain benchmarks. Fixes issue 2357 R=golang-dev, dave, minux.ma, rsc, adg, balasanjay CC=golang-dev https://codereview.appspot.com/6964043
Diffstat (limited to 'test/method1.go')
0 files changed, 0 insertions, 0 deletions