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;
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
Methods
Static Methods
createObjectURL(
blob: Blob)
: string
revokeObjectURL(url: string): void