summaryrefslogtreecommitdiff
path: root/runtime/snapshot.rs
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2024-04-19 18:09:50 -0600
committerGitHub <noreply@github.com>2024-04-19 18:09:50 -0600
commit365e1f48f7059f94d4eeb8f5ba8b3949b686b355 (patch)
tree94016de6377130ba9acff9c725614c609fb3a38f /runtime/snapshot.rs
parent93a40c1c643873ca3199a8cb2a6f29f0ca5bab68 (diff)
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.
Diffstat (limited to 'runtime/snapshot.rs')
0 files changed, 0 insertions, 0 deletions