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 named transport (default is "tcp"), and resolves to the connection (Conn).

f
Deno.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.

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 layer security).

f
Deno.networkInterfaces

Returns an array of the network interface information.

f
Deno.resolveDns

Performs DNS resolution against the given query, returning resolved records.

f
Deno.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.

Interfaces

I
Deno.CaaRecord

If Deno.resolveDns is called with "CAA" record type specified, 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 type specified, it will return an array of objects with this interface.

I
Deno.NaptrRecord

If Deno.resolveDns is called with "NAPTR" record type specified, 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 to Deno.networkInterfaces.

I
Deno.ResolveDnsOptions

Options which can be set when using Deno.resolveDns.

I
Deno.SoaRecord

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

I
Deno.SrvRecord

If Deno.resolveDns is called with "SRV" record type specified, 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 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.

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 via Deno.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 via Deno.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 using Deno.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.