1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00
denoland-deno/ext/http
Matt Mastracci 234cef982c
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).
2023-05-10 13:23:14 +02:00
..
benches chore: use rustfmt imports_granularity option (#17421) 2023-01-14 23:18:58 -05:00
00_serve.js refactor: prefix ops w/ crate they are defined in (#19044) 2023-05-08 23:07:45 +02:00
01_http.js refactor: migrate async ops to generated wrappers (#18937) 2023-05-01 17:40:00 +02:00
Cargo.toml feat(ext/http): Automatic compression for Deno.serve (#19031) 2023-05-10 13:23:14 +02:00
compressible.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
http_next.rs feat(ext/http): Automatic compression for Deno.serve (#19031) 2023-05-10 13:23:14 +02:00
lib.rs refactor: prefix ops w/ crate they are defined in (#19044) 2023-05-08 23:07:45 +02:00
network_buffered_stream.rs refactor(ext/http): comments for h2c code (#18833) 2023-04-25 12:41:01 +02:00
reader_stream.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
README.md chore: add README to ext/http/ (#11958) 2021-09-08 20:48:28 +02:00
request_body.rs feat(ext/http): Rework Deno.serve using hyper 1.0-rc3 (#18619) 2023-04-22 11:48:21 -06:00
request_properties.rs feat(ext/http): Rework Deno.serve using hyper 1.0-rc3 (#18619) 2023-04-22 11:48:21 -06:00
response_body.rs feat(ext/http): Automatic compression for Deno.serve (#19031) 2023-05-10 13:23:14 +02:00
websocket_upgrade.rs fix(ext/http): internal upgradeHttpRaw works with "Deno.serve()" API (#18859) 2023-04-27 00:58:18 +02:00

deno_http

This crate implements server-side HTTP based on primitives from the Fetch API.