Class: URL

qui.utils.URL(scheme, usernameopt, passwordopt, host, portopt, pathopt, queryopt, fragmentopt)

A class holding the details of a URL.

Constructor

new URL(scheme, usernameopt, passwordopt, host, portopt, pathopt, queryopt, fragmentopt)

Parameters:
Name Type Attributes Description
scheme String
username String <optional>
password String <optional>
host String
port Number <optional>
path String <optional>
query Object <optional>
fragment String <optional>
Source:

Members

queryStr

Serialize the query and returns it as a string.

Source:

Methods

(static) parse(urlStr) → {qui.utils.URL}

Parse a string representation of a URL and returns a URL object.

Parameters:
Name Type Description
urlStr String
Source:
Returns:
Type
qui.utils.URL

(static) qualify(urlStr) → {String}

Transform the string representation of a partial URL into a full URL.

Parameters:
Name Type Description
urlStr String
Source:
Returns:
Type
String

alter(attributes) → {qui.utils.URL}

Alter one or more attributes of this URL, returning the new URL.

Parameters:
Name Type Description
attributes Object
Source:
Returns:
Type
qui.utils.URL

toAttributes() → {Object}

Return all the attributes of this URL as a dictionary.

Source:
Returns:
Type
Object

toString() → {String}

Compose the string representation of this URL.

Source:
Returns:
Type
String