Namespace: DuURL

DuURL

Methods to manage URLS

Members

staticDuURL.EscapedChars

The list of escaped characters in URLs

Methods

staticDuURL.buildGET(host, subfolders, argsArray, httpVersion){string}

D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 7323
Builds a HTTP GET request. The user-agent is named after DuESF.scriptName.
Name Type 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 "1.1" optional An associative array with key/value pairs. Values will be escaped.
Returns:
Type Description
string The query ready to be posted with a socket

staticDuURL.buildRequest(arr){string}

D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 7300
Builds a query, made of "key=value" pairs.
Name Type Description
arr Object An associative array with key/value pairs. Values will be escaped.
Returns:
Type Description
string The query, with the leading ?.

staticDuURL.escape(str){string}

D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 7286
Escapes common characters from a string to be included in a GET request URL.
Name Type Description
str string The string to escape.
Returns:
Type Description
string The escaped string.