UNPKG

@odata2ts/http-client-fetch

Version:

HTTP client based on fetch and consumable by odata2ts

51 lines (30 loc) 1.58 kB
[![npm (scoped)](https://img.shields.io/npm/v/@odata2ts/http-client-fetch?style=for-the-badge)](https://www.npmjs.com/package/@odata2ts/http-client-fetch) # Fetch HTTP Client Fetch based HTTP client for [odata2ts](https://github.com/odata2ts/odata2ts). This client uses - as its name suggests - [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) for realizing the HTTP communication. It supports: - request configuration - automatic CSRF token handling Works also for Node.js v18+, but is still marked as **experimental**. ## Installation Install package `@odata2ts/http-client-fetch` as runtime dependency: ```bash npm install --save @odata2ts/http-client-fetch ``` ## Documentation [Fetch Client Documentation](https://odata2ts.github.io/docs/odata-client/http-client/fetch) Main documentation for the odata2ts eco system: [https://odata2ts.github.io](https://odata2ts.github.io/) ## Tests See folder [test](https://github.com/odata2ts/http-client/tree/main/packages/fetch/test) for unit tests. See folder [int-test](https://github.com/odata2ts/http-client/tree/main/packages/fetch/int-test) for integration tests. ## Support, Feedback, Contributing This project is open to feature requests, suggestions, bug reports, usage questions etc. via [GitHub issues](https://github.com/odata2ts/http-client/issues). Contributions and feedback are encouraged and always welcome. See the [contribution guidelines](https://github.com/odata2ts/http-client/blob/main/CONTRIBUTING.md) for further information. ## License MIT - see [License](./LICENSE).