@tramvai/module-http-client
v4.41.39
Published
The module provides the application with a factory of HTTP clients, a basic service for working with various APIs and a service for working with `papi`.
Downloads
1,722
Readme
@tramvai/module-http-client
The module provides the application with a factory of HTTP clients, a basic service for working with various APIs and a service for working with papi
.
Link to complete HTTP clients documentation - https://tramvai.dev/docs/features/data-fetching/http-client/
Installation
You need to install @tramvai/module-http-client
yarn add @tramvai/module-http-client
And connect in the project
import { createApp } from '@tramvai/core';
import { HttpClientModule } from '@tramvai/module-http-client';
createApp({
name: 'tincoin',
modules: [HttpClientModule],
});
Explanation
The module implements interfaces from the library @tramvai/http-client using a special library - adapter @tramvai/tinkoff-request-http-client-adapter, running on top of @tinkoff/request.