http.ts 871 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * @Author: liuJie
  3. * @Date: 2026-01-24 19:45:07
  4. * @LastEditors: liuJie
  5. * @LastEditTime: 2026-01-25 22:00:48
  6. * @Describe: HTTP请求节点
  7. */
  8. import type { IWorkflowNode } from '@repo/workflow'
  9. export const httpNode: IWorkflowNode = {
  10. id: 'http-node',
  11. type: 'http-node',
  12. label: 'HTTP',
  13. position: { x: 468, y: 370 },
  14. data: {
  15. id: 'http-node-1',
  16. label: 'HTTP',
  17. description: 'http请求节点',
  18. inputs: [],
  19. outputs: [],
  20. method: 'GET',
  21. url: '',
  22. headers: [],
  23. params: [],
  24. bodyType: 'json',
  25. body: '',
  26. verifySSL: true,
  27. timeoutConfig: {
  28. connect: 8,
  29. read: 6,
  30. write: 1
  31. },
  32. output: {
  33. body: '',
  34. status_code: 200,
  35. headers: [],
  36. files: []
  37. },
  38. errorConfig: {
  39. retry: true,
  40. max_retry: 3,
  41. retry_delay: 100
  42. },
  43. exception: 'none',
  44. exceptionDefaultValue: {
  45. body: '',
  46. status_code: 0,
  47. headers: '{}'
  48. }
  49. }
  50. }