go-json-rest
go-json-rest copied to clipboard
Add a threshold for the gzip compression ?
Small JSON payload are actually bigger when compressed. We may want to skip the gzip compression below a given threshold. Problem the API allows to Write or WriteJson multiple times per response (allowing streaming), how to known the size in advance in that case ?