Skip to main content
Network - Deno documentation

Functions

f
Deno.connect

Connects to the hostname (default is "127.0.0.1") and port on the namedtransport (default is "tcp"), and resolves to the connection (Conn).

f
Deno.connectTls

Establishes a secure connection over TLS (transport layer security) usingan optional list of CA certs, hostname (default is "127.0.0.1") and port.

f
Deno.listen

Listen announces on the local transport address.

f
Deno.listenDatagram

Listen announces on the local transport address.

f
Deno.listenTls

Listen announces on the local transport address over TLS (transport layersecurity).

f
Deno.networkInterfaces

Returns an array of the network interface information.

f
Deno.resolveDns

Performs DNS resolution against the given query, returning resolvedrecords.

f
Deno.startTls

Start TLS handshake from an existing connection using an optional list ofCA certificates, and hostname (default is "127.0.0.1"). Specifying CA certsis optional. By default the configured root certificates are used. Usingthis function requires that the other end of the connection is prepared fora TLS handshake.

Interfaces

I
Deno.CaaRecord

If Deno.resolveDns is called with "CAA" record typespecified, it will resolve with an array of objects with this interface.

I
Deno.ConnectOptions
No documentation available
I
Deno.DatagramConn

A generic transport listener for message-oriented protocols.

I
Deno.Listener

A generic network listener for stream-oriented protocols.

I
Deno.ListenOptions
No documentation available
I
I
Deno.MulticastV4Membership

Represents membership of a IPv4 multicast group.

I
Deno.MulticastV6Membership

Represents membership of a IPv6 multicast group.

I
Deno.MxRecord

If Deno.resolveDns is called with "MX" record typespecified, it will return an array of objects with this interface.

I
Deno.NaptrRecord

If Deno.resolveDns is called with "NAPTR" record typespecified, it will return an array of objects with this interface.

I
Deno.NetAddr
No documentation available
I
Deno.NetworkInterfaceInfo

The information for a network interface returned from a call toDeno.networkInterfaces.

I
Deno.ResolveDnsOptions

Options which can be set when using Deno.resolveDns.

I
Deno.SoaRecord

If Deno.resolveDns is called with "SOA" record typespecified, it will return an array of objects with this interface.

I
Deno.SrvRecord

If Deno.resolveDns is called with "SRV" record typespecified, it will return an array of objects with this interface.

I
Deno.TcpConn
No documentation available
I
Deno.TcpListenOptions
No documentation available
I
Deno.TlsCertifiedKeyPem

Provides certified key material from strings. The key material is provided inPEM-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 compatiblewith DER-format keys which are binary.

I
Deno.TlsConn
No documentation available
I
Deno.TlsHandshakeInfo
No documentation available
I
Deno.UdpListenOptions

Unstable options which can be set when opening a datagram listener viaDeno.listenDatagram.

I
Deno.UnixAddr
No documentation available
I
Deno.UnixConn
No documentation available
I
Deno.UnixConnectOptions
No documentation available
I
Deno.UnixListenOptions

Options which can be set when opening a Unix listener viaDeno.listen or Deno.listenDatagram.

Type Aliases

T
Deno.Addr
No documentation available
T
Deno.RecordType

The type of the resource record to resolve via DNS usingDeno.resolveDns.

T
Deno.TcpListener

Specialized listener that accepts TCP connections.

T
Deno.TlsListener

Specialized listener that accepts TLS connections.

T
Deno.UnixListener

Specialized listener that accepts Unix connections.