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/DuAEF/DuESF/tools/build/output/DuESF.jsxinc, line 6914
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/DuAEF/DuESF/tools/build/output/DuESF.jsxinc, line 6891
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/DuAEF/DuESF/tools/build/output/DuESF.jsxinc, line 6877
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.