Deno.NetPermissionDescriptor

The permission descriptor for the allow-net and deny-net permissions, which controls access to opening network ports and connecting to remote hosts via the network. The option host allows scoping the permission for outbound connection to a specific host and port.

interface NetPermissionDescriptor {
host?: string;
name: "net";
}

§Properties

§
host?: string
[src]

Optional host string of the form "<hostname>[:<port>]". Examples:

 "github.com"
 "deno.land:8080"
§
name: "net"
[src]