Skip to content

URL

Types

url

The WebApiURL interface represents an object providing static methods used for creating object URLs. See WebApiURL on MDN TODO: mark as private once mutating fields of private records is allowed

type url = {
mutable href: string,
origin: string,
mutable protocol: string,
mutable username: string,
mutable password: string,
mutable host: string,
mutable hostname: string,
mutable port: string,
mutable pathname: string,
mutable search: string,
searchParams: urlSearchParams,
mutable hash: string,
}

Record fields

href
string
origin
string
protocol
string
username
string
password
string
host
string
hostname
string
port
string
pathname
string
string
hash
string

urlSearchParams

type urlSearchParams = private {size: int}

Record fields

size
int