uni-flow 公开 API(中文注解) / UniFlowClientOptions
Interface: UniFlowClientOptions
Defined in: sdk/client.ts:17
UniFlowClient 构造选项。
- 设置
baseUrl:走远程 Orchestrator HTTP API - 不设置
baseUrl:进程内模式(本地 register / start)
Properties
baseUrl?
optionalbaseUrl?:string
Defined in: sdk/client.ts:19
远程 Orchestrator 根 URL(无尾斜杠亦可);设置后所有编排调用走 HTTP。
fetchFn?
optionalfetchFn?: (input,init?) =>Promise<Response>
Defined in: sdk/client.ts:21
fetch 实现,默认全局 fetch(单测可注入 Mock)。
Parameters
input
string | URL | Request
init?
RequestInit
Returns
Promise<Response>
headers?
optionalheaders?:Record<string,string>
Defined in: sdk/client.ts:23
远程模式下的额外请求头(如鉴权)。