2016-01-05 01:13:48 +01:00
|
|
|
/*
|
|
|
|
This file is part of TALER
|
|
|
|
(C) 2016 GNUnet e.V.
|
|
|
|
|
|
|
|
TALER is free software; you can redistribute it and/or modify it under the
|
|
|
|
terms of the GNU General Public License as published by the Free Software
|
|
|
|
Foundation; either version 3, or (at your option) any later version.
|
|
|
|
|
|
|
|
TALER is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
|
|
A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License along with
|
2016-07-07 17:59:29 +02:00
|
|
|
TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
|
2016-01-05 01:13:48 +01:00
|
|
|
*/
|
|
|
|
|
2016-01-05 15:42:46 +01:00
|
|
|
/**
|
|
|
|
* Helpers for doing XMLHttpRequest-s that are based on ES6 promises.
|
2017-05-24 16:14:23 +02:00
|
|
|
* Allows for easy mocking for test cases.
|
2020-12-14 16:45:15 +01:00
|
|
|
*
|
2020-12-02 14:55:04 +01:00
|
|
|
* The API is inspired by the HTML5 fetch API.
|
2016-01-05 15:42:46 +01:00
|
|
|
*/
|
|
|
|
|
2020-07-22 10:52:03 +02:00
|
|
|
/**
|
|
|
|
* Imports
|
|
|
|
*/
|
2022-03-29 13:47:32 +02:00
|
|
|
|
2023-02-16 01:12:02 +01:00
|
|
|
import * as impl from "#http-impl";
|
|
|
|
import * as common from "./http-common.js";
|
2020-08-01 10:22:08 +02:00
|
|
|
|
2023-02-16 01:12:02 +01:00
|
|
|
export * from "./http-common.js";
|
2020-09-02 08:53:11 +02:00
|
|
|
|
2023-02-15 23:32:42 +01:00
|
|
|
|
2023-02-16 01:12:02 +01:00
|
|
|
export function createPlatformHttpLib(args?: common.HttpLibArgs): common.HttpRequestLibrary {
|
2023-02-15 23:32:42 +01:00
|
|
|
return new impl.HttpLibImpl(args);
|
|
|
|
}
|