Skip to content

Commit

Permalink
docs: add ChunkedBodyWriter effect display (#807)
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoranz758 authored Oct 9, 2023
1 parent a396c06 commit fcdd1b3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
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
```

1 comment on commit fcdd1b3

@vercel
Copy link

@vercel vercel bot commented on fcdd1b3 Oct 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.