Companion

Functions

Link copied to clipboard
external fun canParse(url: String, base: String = definedExternally): Boolean
external fun canParse(url: String, base: URLLike): Boolean
external fun canParse(url: URLLike, base: String = definedExternally): Boolean
external fun canParse(url: URLLike, base: URLLike): Boolean

The URL.canParse() static method of the URL interface returns a boolean indicating whether or not an absolute URL, or a relative URL combined with a base URL, are parsable and valid.

Link copied to clipboard
external fun createObjectURL(obj: URLSource): String

The createObjectURL() static method of the URL interface creates a string containing a blob URL pointing to the object given in the parameter.

Link copied to clipboard
external fun parse(url: String, base: String = definedExternally): URL?
external fun parse(url: String, base: URLLike): URL?
external fun parse(url: URLLike, base: String = definedExternally): URL?
external fun parse(url: URLLike, base: URLLike): URL?

The URL.parse() static method of the URL interface returns a newly created URL object representing the URL defined by the parameters.

Link copied to clipboard
external fun revokeObjectURL(url: String)

The revokeObjectURL() static method of the URL interface releases an existing object URL which was previously created by calling URL.createObjectURL().