Constructors
constructor
- new URL(url: string, baseUrl?: null | string): URL
-
Parameters
-
url: string
-
baseUrl: null | string = null
Returns URL
Properties
Private _urlProps
_urlProps: URLProperties
Accessors
hash
- get hash(): string
- set hash(hash: string): void
-
Returns string
-
Parameters
Returns void
host
- get host(): string
- set host(host: string): void
-
Returns string
-
Parameters
Returns void
hostname
- get hostname(): string
- set hostname(hostname: string): void
-
Returns string
-
Parameters
Returns void
href
- get href(): string
- set href(absoluteUrl: string): void
-
Returns string
-
Parameters
Returns void
password
- get password(): string
- set password(password: string): void
-
Returns string
-
Parameters
Returns void
pathname
- get pathname(): string
- set pathname(pathname: string): void
-
Returns string
-
Parameters
Returns void
port
- get port(): string
- set port(port: string): void
-
Returns string
-
Parameters
Returns void
protocol
- get protocol(): string
- set protocol(protocol: string): void
-
Returns string
-
Parameters
Returns void
search
- get search(): string
- set search(search: string): void
-
Returns string
-
Parameters
Returns void
username
- get username(): string
- set username(username: string): void
-
Returns string
-
Parameters
Returns void
Export the
as-url
URL API that we can use with Fastly