UNPKG

jinaga

Version:

Data management for web and mobile applications.

16 lines 896 B
import { HttpHeaders } from "./authenticationProvider"; import { PostAccept, PostContentType } from "./ContentType"; import { HttpConnection, HttpResponse } from "./web-client"; export declare class FetchConnection implements HttpConnection { private url; private getHeaders; private reauthenticate; constructor(url: string, getHeaders: () => Promise<HttpHeaders>, reauthenticate: () => Promise<boolean>); get(path: string): Promise<object>; private httpGet; getStream(path: string, onResponse: (response: object) => Promise<void>, onError: (err: Error) => void, feedRefreshIntervalSeconds: number): () => void; post(path: string, contentType: PostContentType, accept: PostAccept, body: string, timeoutSeconds: number): Promise<HttpResponse>; private httpPost; getAcceptedContentTypes(path: string): Promise<string[]>; } //# sourceMappingURL=fetch.d.ts.map