kura
Version:
The FileSystem API abstraction library.
21 lines • 684 B
TypeScript
export interface XHROptions {
requestHeaders?: {
[key: string]: string;
};
timeout?: number;
}
export declare class XHR {
private key?;
private fullPath?;
private handled;
private options;
private url;
constructor(key?: string, fullPath?: string, options?: XHROptions);
get(url: string, responseType: XMLHttpRequestResponseType): Promise<any>;
post(url: string, content: Blob | BufferSource | string, type?: string): Promise<void>;
put(url: string, content: Blob | BufferSource | string, type?: string): Promise<void>;
private configure;
private createXMLHttpRequest;
private xhr;
}
//# sourceMappingURL=XHR.d.ts.map