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