W3cubDocs

/Deno

URL

The URL interface represents an object providing static methods used for creating object URLs.

class URL {
constructor(url: string, base?: string | URL);
hash: string;
host: string;
hostname: string;
href: string;
readonly origin: string;
password: string;
pathname: string;
port: string;
protocol: string;
search: string;
readonly searchParams: URLSearchParams;
username: string;
toJSON(): string;
toString(): string;
static createObjectURL(blob: Blob): string;
static revokeObjectURL(url: string): void;
}

Constructors

new URL(url: string, base?: string | URL)

Properties

hash: string
host: string
hostname: string
href: string
origin: string
password: string
pathname: string
port: string
protocol: string
searchParams: URLSearchParams
username: string

Methods

toJSON(): string
toString(): string

Static Methods

createObjectURL(blob: Blob): string
revokeObjectURL(url: string): void

© 2018–2021 the Deno authors
https://doc.deno.land/deno/stable/~/URL