diff options
Diffstat (limited to 'packages/taler-util/src/http-impl.node.d.ts')
-rw-r--r-- | packages/taler-util/src/http-impl.node.d.ts | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/packages/taler-util/src/http-impl.node.d.ts b/packages/taler-util/src/http-impl.node.d.ts index b0fba9b30..771dd991c 100644 --- a/packages/taler-util/src/http-impl.node.d.ts +++ b/packages/taler-util/src/http-impl.node.d.ts @@ -1,17 +1,25 @@ import { HttpLibArgs } from "./http-common.js"; -import { HttpRequestLibrary, HttpRequestOptions, HttpResponse } from "./http.js"; +import { + HttpRequestLibrary, + HttpRequestOptions, + HttpResponse, +} from "./http.js"; /** * Implementation of the HTTP request library interface for node. */ export declare class HttpLibImpl implements HttpRequestLibrary { - private throttle; - private throttlingEnabled; - constructor(args?: HttpLibArgs); - /** - * Set whether requests should be throttled. - */ - setThrottling(enabled: boolean): void; - fetch(url: string, opt?: HttpRequestOptions): Promise<HttpResponse>; - get(url: string, opt?: HttpRequestOptions): Promise<HttpResponse>; - postJson(url: string, body: any, opt?: HttpRequestOptions): Promise<HttpResponse>; + private throttle; + private throttlingEnabled; + constructor(args?: HttpLibArgs); + /** + * Set whether requests should be throttled. + */ + setThrottling(enabled: boolean): void; + fetch(url: string, opt?: HttpRequestOptions): Promise<HttpResponse>; + get(url: string, opt?: HttpRequestOptions): Promise<HttpResponse>; + postJson( + url: string, + body: any, + opt?: HttpRequestOptions, + ): Promise<HttpResponse>; } |