This packages holds implementation of HttpRequest
(from
0k.io/types-request
), a simple http request facility using
the standard fetch()
interface.
This should work in any browser and WebView when run in android
or iOS.
Adding @0k/browser-request
to your project
From the root of your project:
npm install --save @0k/browser-request
Or better, as browser-request
is still in early release,
npm install --save 0k/browser-request
To be sure to get the latest version, relaunch this last command
whenever you want to update.
Developer
Building the project from fresh clone
npm install
Transpilation to JavaScript
npx tsc
or with watch support:
npx tsc -w
Changelog
0.0.5 (2023-04-22)
Fix
-
Repair android browser support. [Valentin Lab]
It seems at least on some android, the timeout
function doesn't seem
to be available, and all requests would fail.
0.0.4 (2023-03-02)
New
- Add
timeout
option support. [Valentin Lab]
0.0.3 (2022-09-10)
Fix
- Prevent double slash at beginning of path. [Valentin Lab]
0.0.2 (2022-06-02)
Fix
- Response headers were not correctly filled up. [Valentin Lab]