James Tucker 08a34edd91
tsweb: add transparent compression for StdHandler
Implements inline compression for both gzip and brotli via the brotli
library. The library requires that Content-Type is set. The
implementation here explicitly avoids wrapping the ResponseWriter in
cases where Accept-Encoding is not set so as to maximally attempt to get
out of the way of hijack and upgrade concerns. It also avoids any
attempt at compression if Content-Encoding is already set so that
handlers that already perform compression are unaffected.

Signed-off-by: James Tucker <james@tailscale.com>
2022-11-30 13:49:04 -08:00
..
2022-11-30 04:05:26 +05:00
2022-04-07 16:38:33 -04:00
2022-08-02 10:08:05 -07:00
2022-11-04 07:25:42 -07:00
2022-09-29 13:36:13 -07:00