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)
[src]

§Properties

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

§Methods

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

§Static Methods

§
createObjectURL(blob: Blob): string
[src]
§
revokeObjectURL(url: string): void
[src]