{
  "name": "Go HTTP客户端",
  "description": "使用Go语言进行高性能HTTP请求",
  "version": "1.0.0",
  "category": "network",
  "inputs": [
    {
      "name": "context",
      "type": "object",
      "description": "上下文数据"
    },
    {
      "name": "inputs",
      "type": "object",
      "description": "输入数据"
    },
    {
      "name": "config",
      "type": "object",
      "description": "配置参数"
    }
  ],
  "outputs": [
    {
      "name": "success",
      "type": "boolean",
      "description": "执行是否成功"
    },
    {
      "name": "output",
      "type": "string",
      "description": "执行结果消息"
    },
    {
      "name": "result",
      "type": "object",
      "description": "HTTP响应数据"
    }
  ],
  "config": [
    {
      "name": "url",
      "type": "text",
      "label": "请求URL",
      "required": true,
      "description": "要请求的URL地址"
    },
    {
      "name": "method",
      "type": "select",
      "label": "请求方法",
      "required": false,
      "default": "GET",
      "options": [
        {"value": "GET", "label": "GET"},
        {"value": "POST", "label": "POST"},
        {"value": "PUT", "label": "PUT"},
        {"value": "DELETE", "label": "DELETE"},
        {"value": "PATCH", "label": "PATCH"}
      ]
    },
    {
      "name": "timeout",
      "type": "number",
      "label": "超时时间(秒)",
      "required": false,
      "default": 30,
      "min": 1,
      "max": 300
    },
    {
      "name": "headers",
      "type": "object",
      "label": "请求头",
      "required": false,
      "description": "HTTP请求头配置"
    }
  ]
}
