support "Accept-Encoding" http header

exactly to support compress http response body with gzip. This feature is desired when get operation is frequent and value is large
could we make `writeEvent` to be `writeEvent(w, ev, "gzip")` instead?
the "Content-Encoding" should be set only when the content is written. If we put them in two places, the code will become confused.