Skip to content

Commit 8f64c8d

Browse files
committed
opt(hertz): remove old SSE docs and add new example link
1 parent 04dffeb commit 8f64c8d

8 files changed

Lines changed: 10 additions & 911 deletions

File tree

content/en/docs/hertz/tutorials/basic-feature/sse.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ func HandleSSE(ctx context.Context, resp *protocol.Response) error {
8383
}
8484
```
8585

86+
### Example Codes
87+
- [SSE](https://github.com/cloudwego/hertz-examples/tree/main/sse) : Example of hertz using SSE protocol
88+
8689
### Common Issues
8790

8891
#### How to implement multi-level SSE / SSE Proxy?

content/en/docs/hertz/tutorials/example/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Hertz provides a series of code examples designed to help users get start with H
5151
- [HTTP2](https://github.com/hertz-contrib/http2/tree/main/examples) : Example of hertz using HTTP2 protocol
5252
- [HTTP3](https://github.com/hertz-contrib/http3/tree/main/examples/quic-go) : Example of hertz using HTTP3 protocol
5353
- [Websocket](https://github.com/hertz-contrib/websocket/tree/main/examples) : Example of hertz using Websocket protocol
54-
- [SSE](https://github.com/hertz-contrib/sse/tree/main/examples) : Example of hertz using SSE protocol
54+
- [SSE](https://github.com/cloudwego/hertz-examples/tree/main/sse) : Example of hertz using SSE protocol
5555

5656
### Route
5757

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ description: "Response Writer Extension provided by Hertz."
1010
According to Hertz's [layered architecture](/zh/docs/hertz/overview/), the actual write
1111
operation of the HTTP response is performed after the application layer user processing logic returns. Under this
1212
constraint, users cannot flexibly control the behavior of write operations on demand. This limitation is especially
13-
obvious in scenarios such as controlling chunked encoding write logic
14-
and [SSE](https://github.com/hertz-contrib/sse#hertz-sse).
13+
obvious in scenarios such as controlling chunked encoding write logic.
1514

1615
To solve this problem, Hertz provides an extension called "Response Writer Hijacking" that can vertically penetrate the
1716
limitations brought by the layered architecture in an orthogonal way. It allows users to freely customize the logic of

0 commit comments

Comments
 (0)