mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-18 11:40:39 +09:00
10 lines
291 B
TypeScript
10 lines
291 B
TypeScript
|
|
import type { CreateConfigValues } from "../../components/AgentConfigForm";
|
||
|
|
|
||
|
|
export function buildHttpConfig(v: CreateConfigValues): Record<string, unknown> {
|
||
|
|
const ac: Record<string, unknown> = {};
|
||
|
|
if (v.url) ac.url = v.url;
|
||
|
|
ac.method = "POST";
|
||
|
|
ac.timeoutMs = 15000;
|
||
|
|
return ac;
|
||
|
|
}
|