Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add ChunkedBodyWriter effect display #807

Merged
merged 1 commit into from
Oct 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,11 @@ time.Sleep(200 * time.Millisecond)
}
})
```

Effect display:

Open the interface in the example at localhost:8888, and then use the following command to observe the effect:

```bash
curl -N --location localhost:8888//flush/chunk
```
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,11 @@ Hertz 在 `app.RequestContext` 中提供了 `Response.HijackWriter` 方法让用
}
})
```

效果展示:

在 localhost:8888 开启示例中的接口,然后使用如下命令观察效果:

```bash
curl -N --location localhost:8888//flush/chunk
```
Loading