diff options
author | Brad Fitzpatrick <bradfitz@golang.org> | 2013-01-11 10:03:43 -0800 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2013-01-11 10:03:43 -0800 |
commit | f9de52ba34dc3c742dad2b4aee70e6d85855dd25 (patch) | |
tree | d56441c0e3f5a5a1535436fcf43a79affe1712d7 /test/goprint.go | |
parent | f20a0854a5345a0edd76afcc5f7f391ad3b7d877 (diff) | |
download | go-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/goprint.go')
0 files changed, 0 insertions, 0 deletions