# http http 上

Canonical URL: https://developers.iagenify.com/zh/sdk/workflows/steps/http/
Language: zh

`type: "http"`

任何 HTTP 请求, 并有它自己的保密环: 每一次重置都经过重新检查, 回复被封住, 超时被封隔 。

Status: url required · 5 redirects · 10 MB · 15 minutes

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `url` | string | 必填 | 在哪里 失踪的人被拒 |
| `method` | string | POST | 任何方法。 |
| `headers` | object |  | 添加到 `Content-Type: application/json`. |
| `body` | any | the run's context | 发为 JSON。缺席发送输入和步骤输出。 |
| `timeoutMs` | integer | 900 000 | 最多15分钟 |

```javascript
{ id: "notify", type: "http", config: {
    url: "https://hooks.example.com/digest",
    method: "POST",
    headers: { Authorization: "Bearer …" },
    body: { text: "{{steps.write.output.text}}" } } }
```

## 输出 {#output}

```javascript
{{steps.notify.output.status}}    // 200
{{steps.notify.output.body}}      // parsed JSON, or the text
```

## 转折后用手 {#redirects}

> **每一个跳都检查一遍**
>
> 最多五个。 导致私人地点的改变方向, 可能就是整个地址检查在一跳中取消, 也就是从另一边改变方向。

浏览器转换为 GET 转换成 GET 这里也是,没有尸体

## 界限 {#bounds}

| 事 事 事 | 限制 |
| --- | --- |
| Response | 10 MMM 10 MMM |
| 重转 | 5 |
| 超时超时 | 15分钟15分钟 |

## 拒绝拒绝失败 {#failure}

成功范围以外的状态会抛出, 带有该服务返回的地位、 地址和讯息, 通常就是解释它的原因。

- [条件条件条件](/zh/sdk/workflows/steps/condition): 状况的分管
- [工作流步骤](/zh/sdk/workflows/steps): 全部 23 种类型。

```python
{"id": "notify", "type": "http", "config": {
    "url": "https://hooks.example.com/digest",
    "method": "POST",
    "headers": {"Authorization": "Bearer …"},
    "body": {"text": "{{steps.write.output.text}}"}}}
```

```python
"{{steps.notify.output.status}}"   # 200
"{{steps.notify.output.body}}"     # parsed JSON, or the text
```
