@luvio/network-adapter-composable v0.156.5
network-adapter-fetch
An implementation of the Luvio NetworkAdapter that allows for multiple NetworkAdapters in the same environment.
Install
npm i @luvio/network-adapter-composable
Usage
import { buildComposableNetworkAdapter } from '@luvio/network-adapter-composable';
import { composedJwtNetworkAdapter } from '@luvio/network-adapter-jwt';
import { fetchNetworkAdapter } from '@luvio/network-adapter-fetch';
const networkAdapter = buildComposableNetworkAdapter([
composedJwtNetworkAdapter, // Ex: handle ResourceRequests that needs JWT authentication, leveraging on the baseUri
{
shouldHandleRequest: () => true, // default network adapter
adapter: fetchNetworkAdapter,
},
]);
const luvio = new Luvio(new Environment(new InMemoryStore(), networkAdapter));
6 months ago
6 months ago
8 months ago
9 months ago
9 months ago
8 months ago
10 months ago
10 months ago
10 months ago
10 months ago
9 months ago
9 months ago
11 months ago
11 months ago
11 months ago
11 months ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago