@dvcol/base-http-client
v1.16.1
Published
A simple http client wrapper for making requests
Downloads
185
Maintainers
Readme
Simple HTTP client wrapping fetch API to add basic caching, abort signal and proxy support.
Prerequisites
- pnpm >=9.0.0
- node >=20.0.0
Install
pnpm install
Usage
pnpm add @dvcol/base-http-client
Features
- Modular endpoint typing (both request and response)
- Built-in cache support (per client, endpoint, or query)
- Extensible cache store (in-memory, local storage, etc.)
- Event observer (request, query, auth)
- Built-in cancellation support
- Built-in cors proxy support
Author
- Github: @dvcol
📝 License
This project is MIT licensed.