new DataONEHttpClient(optionsopt)
Parameters:
- Source:
Methods
Perform an HTTP request.
Parameters:
- Source:
Returns:
A promise that resolves to a
normalized response object.
-
Type
-
Promise.<DataONEHttpResponse>
buildInstanceKey(optionsopt) → {string}
Build a unique instance key based on client options.
Parameters:
- Source:
Returns:
Instance key
-
Type
-
string
Get a singleton DataONEHttpClient instance for the provided options.
Parameters:
- Source:
Returns:
Client instance
-
Type
-
DataONEHttpClient
normalizeOptions(optionsopt) → {object}
Normalize options for instance keys and default values.
Parameters:
- Source:
Returns:
Normalized options
-
Type
-
object