Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ayonli_jsext/lib.deno.d.ts>Deno.NetPermissionDescriptor

A JavaScript extension package for building strong and modern applications.
Latest
interface Deno.NetPermissionDescriptor
import { type Deno } from "https://deno.land/x/ayonli_jsext@v0.9.72/lib.deno.d.ts";
const { NetPermissionDescriptor } = Deno;

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.

Properties

name: "net"
optional
host: string

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

 "github.com"
 "deno.land:8080"