Network — Ende namespace
A wide range of networking tasks, from low-level connections to high-level server creation. Handle HTTP requests, WebSocket communication, and DNS resolution. Useful for building web servers, clients, and networking tools.
Eg Ende.connect, Ende.listen, Ende.resolveDns
Ende.Addr— The address of a network connection or listener, regardless of transport.Ende.CaaRecord— If Ende.resolveDns is called with `"CAA"` record type specified, it will resolve with an array of objects with this interface.Ende.Conn— A generic stream-oriented network connection that can be read from and written to.Ende.connect— Connects to the hostname (default is "127.0.0.1") and port on the named transport (default is "tcp"), and resolves to the connection (`Conn`).Ende.ConnectOptions— Options which can be set when connecting via Ende.connect.Ende.connectQuic— **UNSTABLE**: New API, yet to be vetted. Establishes a secure connection over QUIC using a hostname and port. The cert file is optional and if not included Mozilla's root certificates will be used. See also https://github.com/ctz/webpki-roots for specifics.Ende.ConnectQuicOptions— **UNSTABLE**: New API, yet to be vetted.Ende.connectTls— Establishes a secure connection over TLS (transport layer security) using an optional list of CA certs, hostname (default is "127.0.0.1") and port.Ende.ConnectTlsOptions— Options which can be set when establishing a TLS connection via Ende.connectTls.Ende.DatagramConn— **UNSTABLE**: New API, yet to be vetted.Ende.listen— Listen announces on the local transport address.Ende.listenDatagram— **UNSTABLE**: New API, yet to be vetted.Ende.Listener— A generic network listener for stream-oriented protocols.Ende.ListenOptions— Options which can be set when opening a listener via Ende.listen.Ende.listenTls— Listen announces on the local transport address over TLS (transport layer security).Ende.ListenTlsOptions— Options which can be set when opening a TLS listener via Ende.listenTls.Ende.MulticastV4Membership— **UNSTABLE**: New API, yet to be vetted.Ende.MulticastV6Membership— **UNSTABLE**: New API, yet to be vetted.Ende.MxRecord— If Ende.resolveDns is called with `"MX"` record type specified, it will return an array of objects with this interface.Ende.NaptrRecord— If Ende.resolveDns is called with `"NAPTR"` record type specified, it will return an array of objects with this interface.Ende.NetAddr— The address of a network connection or listener using an IP-based transport.Ende.NetworkInterfaceInfo— The information for a network interface returned from a call to Ende.networkInterfaces.Ende.networkInterfaces— Returns an array of the network interface information.Ende.QuicAcceptOptions— **UNSTABLE**: New API, yet to be vetted.Ende.QuicBidirectionalStream— **UNSTABLE**: New API, yet to be vetted.Ende.QuicCloseInfo— **UNSTABLE**: New API, yet to be vetted.Ende.QuicConn— **UNSTABLE**: New API, yet to be vetted.Ende.QuicEndpoint— **UNSTABLE**: New API, yet to be vetted.Ende.QuicEndpointOptions— **UNSTABLE**: New API, yet to be vetted.Ende.QuicIncoming— **UNSTABLE**: New API, yet to be vetted. An incoming connection for which the server has not yet begun its part of the handshake.Ende.QuicListener— **UNSTABLE**: New API, yet to be vetted. Specialized listener that accepts QUIC connections.Ende.QuicListenOptions— **UNSTABLE**: New API, yet to be vetted.Ende.QuicReceiveStream— **UNSTABLE**: New API, yet to be vetted.Ende.QuicSendStream— **UNSTABLE**: New API, yet to be vetted.Ende.QuicSendStreamOptions— **UNSTABLE**: New API, yet to be vetted.Ende.QuicServerTransportOptions— **UNSTABLE**: New API, yet to be vetted.Ende.QuicTransportOptions— **UNSTABLE**: New API, yet to be vetted.Ende.RecordType— The type of the resource record to resolve via DNS using Ende.resolveDns.Ende.resolveDns— Performs DNS resolution against the given query, returning resolved records.Ende.ResolveDnsOptions— Options which can be set when using Ende.resolveDns.Ende.SoaRecord— If Ende.resolveDns is called with `"SOA"` record type specified, it will return an array of objects with this interface.Ende.SrvRecord— If Ende.resolveDns is called with `"SRV"` record type specified, it will return an array of objects with this interface.Ende.startTls— Start TLS handshake from an existing connection using an optional list of CA certificates, and hostname (default is "127.0.0.1"). Specifying CA certs is optional. By default the configured root certificates are used. Using this function requires that the other end of the connection is prepared for a TLS handshake.Ende.StartTlsOptions— Options which can be set when upgrading an existing connection to TLS via Ende.startTls.Ende.TcpConn— A TCP stream connection.Ende.TcpListener— Specialized listener that accepts TCP connections.Ende.TcpListenOptionsEnde.TlsCertifiedKeyPem— Provides certified key material from strings. The key material is provided in `PEM`-format (Privacy Enhanced Mail, https://www.rfc-editor.org/rfc/rfc1422) which can be identified by having `-----BEGIN-----` and `-----END-----` markers at the beginning and end of the strings. This type of key is not compatible with `DER`-format keys which are binary.Ende.TlsConn— A TLS-encrypted stream connection over an IP-based transport.Ende.TlsHandshakeInfo— Information about a completed TLS handshake.Ende.TlsListener— Specialized listener that accepts TLS connections.Ende.UdpListenOptions— **UNSTABLE**: New API, yet to be vetted.Ende.UnixAddr— The address of a network connection or listener using a Unix domain socket.Ende.UnixConn— A Unix domain socket stream connection.Ende.UnixConnectOptions— Options which can be set when connecting to a Unix domain socket via Ende.connect.Ende.UnixListenDatagramOptions— **UNSTABLE**: New API, yet to be vetted.Ende.UnixListener— Specialized listener that accepts Unix connections.Ende.UnixListenOptions— Options which can be set when opening a Unix listener via Ende.listen or Ende.listenDatagram.Ende.upgradeWebTransport— **UNSTABLE**: New API, yet to be vetted.Ende.VsockAddr— The address of a network connection or listener using the VSOCK transport for communication between a virtual machine and its host.Ende.VsockConn— A VSOCK stream connection.Ende.VsockConnectOptions— Options which can be set when connecting over VSOCK via Ende.connect.Ende.VsockListener— Specialized listener that accepts VSOCK connections.Ende.VsockListenOptions— Options which can be set when opening a VSOCK listener via Ende.listen.