Class: URLRequest

(private) url.URLRequest()

The URLRequest class represents a URL request.

Constructor

(private) 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:

(package) urlInfo :module:url~URLInfo

Information about the URL of the request.

Type:
Source:

Methods

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

Returns a URLRequest object for the given URL.

Parameters:
Name Type Attributes Description
url string | module:url~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
module:url.URLRequest

toString() → {string}

Returns the URL of the request.

Source:
Returns:
Type
string