Namespace

DuURL

DuURL

Methods to manage URLS

View Source DuAEF_DuSan_api.jsxinc, line 7930

Members

# static EscapedChars

The list of escaped characters in URLs

View Source DuAEF_DuSan_api.jsxinc, line 7935

Methods

# static buildGET(host, subfoldersopt, argsArrayopt, httpVersionopt) → {string}

Builds a HTTP GET request. The user-agent is named after DuESF.scriptName.
Parameters:
Name Type Attributes Default Description
host string The host, without port, without http part; for example: "duduf.com" or "version.rxlab.io"
subfolders Array.<string> <optional>
The subfolders.
argsArray Object <optional>
An associative array with key/value pairs. Values will be escaped.
httpVersion string <optional>
"1.1" An associative array with key/value pairs. Values will be escaped.

View Source DuAEF_DuSan_api.jsxinc, line 8007

The query ready to be posted with a socket
string

# static buildRequest(arr) → {string}

Builds a query, made of "key=value" pairs.
Parameters:
Name Type Description
arr Object An associative array with key/value pairs. Values will be escaped.

View Source DuAEF_DuSan_api.jsxinc, line 7984

The query, with the leading ?.
string

# static escape(str) → {string}

Escapes common characters from a string to be included in a GET request URL.
Parameters:
Name Type Description
str string The string to escape.

View Source DuAEF_DuSan_api.jsxinc, line 7970

The escaped string.
string