dist/NetworkUtils.js
function fetchLink(link, store, requestHeaders, options) {
    if (link) {
        var href = typeof link === 'object' ? link.href : link;
        /* istanbul ignore else */
        if (href) {
            return read(store, href, requestHeaders, options);
        }
    }
    return Promise.resolve(new Response_1.Response({ data: null }, store));
}
function fetchLink(link, store, requestHeaders, options) {
    if (link) {
        var href = typeof link === 'object' ? link.href : link;
        /* istanbul ignore else */
        if (href) {
            return read(store, href, requestHeaders, options);
        }
    }
    return Promise.resolve(new Response_1.Response({ data: null }, store));
}
function fetchLink ( link , store , requestHeaders , options ) { if ( link ) { var href = typeof link === 'object' ? link . href : link ; /* istanbul ignore else */ if ( href ) { return read ( store , href , requestHeaders , options ) ; } } return Promise . resolve ( new Response_1 . Response ( { data : null } , store ) ) ; }
Fetch a link from the server

@export
@param {JsonApi.ILink} link Link URL or a link object
@param {Store} store Store that will be used to save the response
@param {IDictionary<string>} [requestHeaders] Request headers
@param {IRequestOptions} [options] Server options
@returns {Promise<LibResponse>} Response promise
Fetch a link from the server