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 cert file, hostname (default is "127.0.0.1") 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)

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.

f
Deno.shutdown

Shutdown socket send operations.

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.Conn
No documentation available
I
Deno.ConnectOptions
No documentation available
I
Deno.ConnectTlsOptions
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
Deno.ListenTlsOptions
No documentation available
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.StartTlsOptions
No documentation available
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: New API, yet to be vetted.

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.

I
Deno.TlsCertifiedKeyConnectTls
No documentation available
I
Deno.TlsCertifiedKeyFromFile
No documentation available

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.TlsCertifiedKeyOptions

Provides TLS certified keys, ie: a key that has been certified by a trusted certificate authority. A certified key generally consists of a private key and certificate part.

T
Deno.TlsListener

Specialized listener that accepts TLS connections.

T
Deno.UnixListener

Specialized listener that accepts Unix connections.