summaryrefslogtreecommitdiff
path: root/ext/http/lib.rs
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2023-05-10 13:23:14 +0200
committerGitHub <noreply@github.com>2023-05-10 13:23:14 +0200
commit234cef982c12a6c46aa8ba3787920f7b9a856be3 (patch)
tree5aac91fce7f5d66727884bbc1897772979346aff /ext/http/lib.rs
parent3dc745c881c43b9df4aa895291b9e13186be3f17 (diff)
feat(ext/http): Automatic compression for Deno.serve (#19031)
`Content-Encoding: gzip` support for `Deno.serve`. This doesn't support Brotli (`br`) yet, however it should not be difficult to add. Heuristics for compression are modelled after those in `Deno.serveHttp`. Tests are provided to ensure that the gzip compression is correct. We chunk a number of different streams (zeros, hard-to-compress data, already-gzipped data) in a number of different ways (regular, random, large/small, small/large).
Diffstat (limited to 'ext/http/lib.rs')
0 files changed, 0 insertions, 0 deletions