httpbuffer

Package httpbuffer provides a buffer for HTTP requests so that the Content-Length may be set and compression applied for dynamic pages.

Go Reference