diff options
author | Matt Mastracci <matthew@mastracci.com> | 2024-04-19 18:09:50 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-19 18:09:50 -0600 |
commit | 365e1f48f7059f94d4eeb8f5ba8b3949b686b355 (patch) | |
tree | 94016de6377130ba9acff9c725614c609fb3a38f /cli/node.rs | |
parent | 93a40c1c643873ca3199a8cb2a6f29f0ca5bab68 (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 'cli/node.rs')
0 files changed, 0 insertions, 0 deletions