Skip to content

Commit fcdd1b3

Browse files
authored
docs: add ChunkedBodyWriter effect display (#807)
1 parent a396c06 commit fcdd1b3

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

content/en/docs/hertz/tutorials/framework-exten/response_writer.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,11 @@ time.Sleep(200 * time.Millisecond)
7171
}
7272
})
7373
```
74+
75+
Effect display:
76+
77+
Open the interface in the example at localhost:8888, and then use the following command to observe the effect:
78+
79+
```bash
80+
curl -N --location localhost:8888//flush/chunk
81+
```

content/zh/docs/hertz/tutorials/framework-exten/response_writer.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,11 @@ Hertz 在 `app.RequestContext` 中提供了 `Response.HijackWriter` 方法让用
6262
}
6363
})
6464
```
65+
66+
效果展示:
67+
68+
在 localhost:8888 开启示例中的接口,然后使用如下命令观察效果:
69+
70+
```bash
71+
curl -N --location localhost:8888//flush/chunk
72+
```

0 commit comments

Comments
 (0)