1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00
denoland-deno/ext/net
Matt Mastracci e190acbfa8
refactor(ext/net): extract TLS key and certificate from interfaces (#23296)
Removes the certificate options from all the interfaces and replaces
them with a new `TlsCertifiedKeyOptions`. This allows us to centralize
the documentation for TLS key management for both client and server, and
will allow us to add key object support in the future.

Also adds an option `keyFormat` field to the cert/key that must be
omitted or set to `pem`. This will allow us to load other format keys in
the future `der`, `pfx`, etc.

In a future PR, we will add a way to load a certified key object, and we
will add another option to `TlsCertifiedKeyOptions` like so:

```ts
export interface TlsCertifiedKeyOptions =
    | TlsCertifiedKeyPem
    | TlsCertifiedKeyFromFile
    | TlsCertifiedKeyConnectTls
    | { key: Deno.CertifiedKey }
```
2024-04-09 16:23:22 -06:00
..
01_net.js FUTURE(ext/net): remove Deno.(Conn|TlsConn|Listener|TlsListener|UnixConn).prototype.rid (#23219) 2024-04-08 08:59:37 +10:00
02_tls.js refactor(ext/net): extract TLS key and certificate from interfaces (#23296) 2024-04-09 16:23:22 -06:00
Cargo.toml chore: forward v1.42.1 release commit to main (#23162) 2024-04-01 13:35:46 +05:30
io.rs chore: enable clippy unused_async rule (#22834) 2024-03-11 23:48:00 -04:00
lib.deno_net.d.ts refactor(ext/net): extract TLS key and certificate from interfaces (#23296) 2024-04-09 16:23:22 -06:00
lib.rs feat(ext/net): Refactor TCP socket listeners for future clustering mode (#23037) 2024-04-08 16:18:14 -06:00
ops.rs feat(ext/net): Refactor TCP socket listeners for future clustering mode (#23037) 2024-04-08 16:18:14 -06:00
ops_tls.rs feat(ext/net): Refactor TCP socket listeners for future clustering mode (#23037) 2024-04-08 16:18:14 -06:00
ops_unix.rs feat(ext/net): Refactor TCP socket listeners for future clustering mode (#23037) 2024-04-08 16:18:14 -06:00
raw.rs feat(ext/net): Refactor TCP socket listeners for future clustering mode (#23037) 2024-04-08 16:18:14 -06:00
README.md Revert "Revert "refactor(ext/net): clean up variadic network ops (#16… (#16422) 2022-10-25 22:50:55 +02:00
resolve_addr.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
tcp.rs feat(ext/net): Refactor TCP socket listeners for future clustering mode (#23037) 2024-04-08 16:18:14 -06:00

deno_net

This crate implements networking APIs.

This crate depends on following extensions:

  • "deno_web"
  • "deno_fetch"

Following ops are provided:

  • "op_net_accept_tcp"
  • "op_net_accept_unix"
  • "op_net_connect_tcp"
  • "op_net_connect_unix"
  • "op_net_listen_tcp"
  • "op_net_listen_udp"
  • "op_net_listen_unix"
  • "op_net_listen_unixpacket"
  • "op_net_recv_udp"
  • "op_net_recv_unixpacket"
  • "op_net_send_udp"
  • "op_net_send_unixpacket"
  • "op_dns_resolve"
  • "op_net_connect_tls"
  • "op_net_listen_tls"
  • "op_net_accept_tls"
  • "op_tls_start"
  • "op_tls_handshake"