sparnatural
Version:
Visual client-side SPARQL query builder and knowledge graph exploration tool
11 lines (10 loc) • 434 B
TypeScript
/**
* Fetches a URL
*/
export declare class UrlFetcher {
private localCacheDataTtl;
private extraHeaders;
constructor(localCacheDataTtl: any, extraHeaders: Map<string, string>);
fetchUrl(url: string, callback: (data: {}) => void, errorCallback?: (error: any) => void): void;
fetchUrlWithParameters(url: string, providedParameters: {}, callback: (data: {}) => void, errorCallback?: (error: any) => void): void;
}