URL
Generated.swift:84class URL
class URL
import WebAPIBase
protocol ConstructibleFromJSValue
Types conforming to this protocol can be constructed from JSValue
.
protocol ConvertibleToJSValue
Objects that can be converted to a JavaScript value, preferably in a lossless manner.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol JSBridgedClass : JSBridgedType
Conform to this protocol when your Swift class wraps a JavaScript class.
protocol JSBridgedType : ConstructibleFromJSValue, ConvertibleToJSValue, CustomStringConvertible
Use this protocol when your type has no single JavaScript class. For example, a union type of multiple classes or primitive values.
required init(unsafelyWrapping jsObject: JSObject)
convenience init(url: String, base: String? = nil)
class var constructor: JSFunction? { get }
class func canParse(url: String, base: String? = nil) -> Bool
@ReadWriteAttribute var hash: String { get set }
@ReadWriteAttribute var host: String { get set }
@ReadWriteAttribute var hostname: String { get set }
@ReadWriteAttribute var href: String { get set }
let jsObject: JSObject
@ReadonlyAttribute var origin: String { get }
@ReadWriteAttribute var password: String { get set }
@ReadWriteAttribute var pathname: String { get set }
@ReadWriteAttribute var port: String { get set }
@ReadWriteAttribute var `protocol`: String { get set }
@ReadWriteAttribute var search: String { get set }
@ReadonlyAttribute var searchParams: URLSearchParams { get }
@ReadWriteAttribute var username: String { get set }
func toJSON() -> String
init?(from value: JSValue)
init?(from object: JSObject)
static func construct(from value: JSValue) -> Self?
var description: String { get }
var jsValue: JSValue { get }
func jsValue() -> JSValue
import DOM
class func createObjectURL(obj: Blob_or_MediaSource) -> String
class func revokeObjectURL(url: String)