Class: URLRequest

(package) URLRequest()

The URLRequest class represents a URL request.

Constructor

(package) new URLRequest()

Source:

Members

(nullable) documentHostname :string

The hostname of the document making the request.
Type:
  • string
Source:

href :string

The URL of the request.
Type:
  • string
Source:

(package) lowerCaseHref :string

The lower-case version of the URL of the request.
Type:
  • string
Source:

thirdParty :boolean

Whether this is a third-party request.
Type:
  • boolean
Source:

urlInfo :URLInfo

Information about the URL of the request.
Type:
Source:

Methods

(static) from(url, documentHostnameopt, nullable) → {URLRequest}

Returns a URLRequest object for the given URL.
Parameters:
Name Type Attributes Description
url string | URLInfo | URL The URL. If this is a string, it must be a canonicalized URL (see parseURL).
documentHostname string <optional>
<nullable>
The IDNA-encoded hostname of the document making the request.
Source:
Returns:
Type
URLRequest

toString() → {string}

Returns the URL of the request.
Source:
Returns:
Type
string

(private) URLRequest()

Source: