Load
Methods
-
static html(url) → {Document}
-
Fetch HTML content from a URL
Parameters:
Name Type Description urlstring Returns:
Document -
static json(url) → {JSON}
-
Fetch JSON content from a URL
Parameters:
Name Type Description urlstring Returns:
JSON -
static load(urlToFetch, config) → {Response}
-
Fetch content from a URL, often resolving cross-domain data constraints
Parameters:
Name Type Description urlToFetchstring configObject Returns:
Response -
static setBaseUrl(baseUrl)
-
Set the base URL for use with the Load class
Parameters:
Name Type Description baseUrlstring -
static text(url) → {string}
-
Fetch text content from a URL
Parameters:
Name Type Description urlstring Returns:
string -
static trombone(config, params) → {JSON}
-
Make a call to trombone
Parameters:
Name Type Description configObject paramsObject Returns:
JSON -
static xml(url) → {XMLDocument}
-
Fetch XML content from a URL
Parameters:
Name Type Description urlstring Returns:
XMLDocument