@yantrix/providers v0.6.0 • Docs
Yantrix API / @yantrix/providers / createHTTPRequestAdapter
Function: createHTTPRequestAdapter() ​
ts
function createHTTPRequestAdapter<EventType, EventMetaType>(opts): [IDataSource<EventType, EventMetaType, THTTPRequestAdapterOutput>, IDataDestination<EventType, EventMetaType, null, THTTPRequestAdapterInput, THTTPRequestAdapterOutput>]Creates a Data Source and a Data Destination that are connected by a list of HTTP requests, each initiated by a certain Event.
Type Parameters ​
• EventType extends number
• EventMetaType extends Record<EventType, any>
Parameters ​
• opts: THTTPRequestAdapterProps<EventType, EventMetaType>
Returns ​
[IDataSource<EventType, EventMetaType, THTTPRequestAdapterOutput>, IDataDestination<EventType, EventMetaType, null, THTTPRequestAdapterInput, THTTPRequestAdapterOutput>]
An array with the Data Source and the Data Destination.