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:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 7983
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:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 7960
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:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 7946
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.