Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

URL

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

interface 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;
}
var URL: {
prototype: URL;
new (url: string | URL, base?: string | URL): URL;
createObjectURL(obj: Blob | MediaSource): string;
revokeObjectURL(url: string): void;
}
;

§Properties

§
hash: string
[src]
§
host: string
[src]
§
hostname: string
[src]
§
href: string
[src]
§
readonly origin: string
[src]
§
password: string
[src]
§
pathname: string
[src]
§
port: string
[src]
§
protocol: string
[src]
§
readonly searchParams: URLSearchParams
[src]
§
username: string
[src]

§Methods

§
toJSON(): string
[src]
§
toString(): string
[src]