deno/ext/http
Matt Mastracci 365e1f48f7
feat(ext/http): Add addr to HttpServer (#23442)
Adds an `addr` field to `HttpServer` to simplify the pattern
`Deno.serve({ onListen({ port } => listenPort = port })`. This becomes:
`const server = Deno.serve({}); port = server.addr.port`.

Changes:
- Refactors `serve` overloads to split TLS out (in preparation for
landing a place for the TLS SNI information)
- Adds an `addr` field to `HttpServer` that matches the `addr` field of
the corresponding `Deno.Listener`s.
2024-04-19 18:09:50 -06:00
..
benches chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
00_serve.js feat(ext/http): Add addr to HttpServer (#23442) 2024-04-19 18:09:50 -06:00
01_http.js chore: remove unused, unstable 'http' namespace (#23436) 2024-04-18 11:21:25 -06:00
Cargo.toml chore: forward v1.42.4 commit to main (#23394) 2024-04-16 02:41:59 +00:00
compressible.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
fly_accept_encoding.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
http_next.rs chore: update to Rust 1.77.2 (#23262) 2024-04-10 22:08:23 +00:00
lib.rs fix(ext/http): Make Deno.serveHttp() work when proxying (#23269) 2024-04-08 15:02:49 -06:00
network_buffered_stream.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
reader_stream.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
README.md chore: add README to ext/http/ (#11958) 2021-09-08 20:48:28 +02:00
request_body.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
request_properties.rs feat(ext/net): Refactor TCP socket listeners for future clustering mode (#23037) 2024-04-08 16:18:14 -06:00
response_body.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
service.rs chore: update to Rust 1.77.2 (#23262) 2024-04-10 22:08:23 +00:00
websocket_upgrade.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00

deno_http

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