| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- /*
- * @Author: liuJie
- * @Date: 2026-01-24 19:45:07
- * @LastEditors: liuJie
- * @LastEditTime: 2026-01-25 22:00:48
- * @Describe: HTTP请求节点
- */
- import type { IWorkflowNode } from '@repo/workflow'
- export const httpNode: IWorkflowNode = {
- id: 'http-node',
- type: 'http-node',
- label: 'HTTP',
- position: { x: 468, y: 370 },
- data: {
- id: 'http-node-1',
- label: 'HTTP',
- description: 'http请求节点',
- inputs: [],
- outputs: [],
- method: 'GET',
- url: '',
- headers: [],
- params: [],
- bodyType: 'json',
- body: '',
- verifySSL: true,
- timeoutConfig: {
- connect: 8,
- read: 6,
- write: 1
- },
- output: {
- body: '',
- status_code: 200,
- headers: [],
- files: []
- },
- errorConfig: {
- retry: true,
- max_retry: 3,
- retry_delay: 100
- },
- exception: 'none',
- exceptionDefaultValue: {
- body: '',
- status_code: 0,
- headers: '{}'
- }
- }
- }
|