diff options
author | Florian Dold <florian@dold.me> | 2023-02-15 23:32:42 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-02-16 02:50:29 +0100 |
commit | 825d2c4352022e7397854b2bd9ba7d3589873c07 (patch) | |
tree | d23530bf8408367439e6b3820ea0c4269bfeb39a /packages/taler-util/src/http-impl.node.d.ts | |
parent | cb2f4c21d85707abb0221cbf2a859a98836b2d44 (diff) | |
download | wallet-core-825d2c4352022e7397854b2bd9ba7d3589873c07.tar.xz |
make wallet-cli runnable under qtart
Diffstat (limited to 'packages/taler-util/src/http-impl.node.d.ts')
-rw-r--r-- | packages/taler-util/src/http-impl.node.d.ts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/packages/taler-util/src/http-impl.node.d.ts b/packages/taler-util/src/http-impl.node.d.ts new file mode 100644 index 000000000..b0fba9b30 --- /dev/null +++ b/packages/taler-util/src/http-impl.node.d.ts @@ -0,0 +1,17 @@ +import { HttpLibArgs } from "./http-common.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>; +} |