URL to get the data from.
Optional function to execute for a successful response.
Optional function to execute on error.
Optional boolean parameter that specifies if the request is binary.
Optional timeout in ms before calling ontimeout.
Optional function to execute on timeout.
Optional with headers, eg. {'Authorization': 'token xyz'}
Loads the specified URL asynchronously and invokes the given functions depending on the request status. Returns the in use. Both
functions take the as the only parameter. See
Utils#load for a synchronous implementation.
Example:
So for example, to load a diagram into an existing graph model, the following code is used.