From b2128609ac8159a14224deba399144b3400c8c20 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 13 Nov 2016 08:16:12 +0100 Subject: Finally give in and use React, minor tweeks. Preact (a minimalistic React alternative) had too many bugs ... --- lib/wallet/http.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'lib/wallet/http.ts') diff --git a/lib/wallet/http.ts b/lib/wallet/http.ts index 8f82ceaff..1d22c4eb2 100644 --- a/lib/wallet/http.ts +++ b/lib/wallet/http.ts @@ -29,6 +29,19 @@ export interface HttpResponse { } +export interface HttpRequestLibrary { + req(method: string, + url: string | uri.URI, + options?: any): Promise; + + get(url: string | uri.URI): Promise; + + postJson(url: string | uri.URI, body: any): Promise; + + postForm(url: string | uri.URI, form: any): Promise; +} + + export class BrowserHttpLib { req(method: string, url: string|uri.URI, -- cgit v1.2.3