Skip to content

URLAPI

Types

url

The URL interface represents an object providing static methods used for creating object URLs. See URL on MDN

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 = {size: int}

Record fields

size
int